diff --git a/controllers/client/sign.go b/controllers/client/sign.go index 0c64395..87cdcf9 100644 --- a/controllers/client/sign.go +++ b/controllers/client/sign.go @@ -231,10 +231,10 @@ func (t *SignCtl) RealSign() { if isSign && history.Status == 2 { t.SUCCESS("已通过实名签到") return - } else if sign.RealSignJsonForm != nil && len(sign.RealSignJsonForm) != 0 { + } else if sign.RealSignJsonTitle != nil && len(sign.RealSignJsonTitle) != 0 { var params = make(map[string]string, 0) var extSql string - for _, v := range sign.RealSignJsonForm { + for _, v := range sign.RealSignJsonTitle { m, ok := v.(map[string]interface{}) if !ok { continue diff --git a/go.mod b/go.mod index 979dbd8..d3f3784 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.12 require ( github.com/360EntSecGroup-Skylar/excelize/v2 v2.0.1 github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53 // indirect - github.com/aws/aws-sdk-go v1.33.0 // indirect + github.com/aws/aws-sdk-go v1.33.1 // indirect github.com/chanxuehong/wechat v0.0.0-20200409104612-0a1fd76d7a3a github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/elazarl/go-bindata-assetfs v1.0.0 // indirect diff --git a/go.sum b/go.sum index 087491b..1d08200 100644 --- a/go.sum +++ b/go.sum @@ -57,6 +57,8 @@ github.com/aws/aws-sdk-go v1.32.8 h1:ULxiQqR1eZ+k2/1gqv3GYAjkunlS7ncVU2eL801t08M github.com/aws/aws-sdk-go v1.32.8/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= github.com/aws/aws-sdk-go v1.33.0 h1:Bq5Y6VTLbfnJp1IV8EL/qUU5qO1DYHda/zis/sqevkY= github.com/aws/aws-sdk-go v1.33.0/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= +github.com/aws/aws-sdk-go v1.33.1 h1:yz9XmNzPshz/lhfAZvLfMnIS9HPo8+boGRcWqDVX+T0= +github.com/aws/aws-sdk-go v1.33.1/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/bndr/gotabulate v1.1.2 h1:yC9izuZEphojb9r+KYL4W9IJKO/ceIO8HDwxMA24U4c= github.com/bndr/gotabulate v1.1.2/go.mod h1:0+8yUgaPTtLRTjf49E8oju7ojpU11YmXyvq1LbPAb3U= diff --git a/models/sign_up.go b/models/sign_up.go index 3a288aa..bc423da 100644 --- a/models/sign_up.go +++ b/models/sign_up.go @@ -15,7 +15,7 @@ type SignUp struct { OnlyInvitation int `json:"only_invitation"` LogoUrl string `json:"logo_url"` RealSignJsonForm []interface{} `json:"real_sign_json_form"` - RealSignJsonTitle string `json:"real_sign_json_title"` + RealSignJsonTitle []interface{} `json:"real_sign_json_title"` SignMethod int `json:"sign_method"` RealSignListPath string `json:"real_sign_list_path"` IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"`