Browse Source

fix:bug

master
黄梓健 5 years ago
parent
commit
e5f23bb58d
  1. 4
      controllers/client/sign.go
  2. 2
      go.mod
  3. 2
      go.sum
  4. 2
      models/sign_up.go

4
controllers/client/sign.go

@ -231,10 +231,10 @@ func (t *SignCtl) RealSign() {
if isSign && history.Status == 2 { if isSign && history.Status == 2 {
t.SUCCESS("已通过实名签到") t.SUCCESS("已通过实名签到")
return 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 params = make(map[string]string, 0)
var extSql string var extSql string
for _, v := range sign.RealSignJsonForm {
for _, v := range sign.RealSignJsonTitle {
m, ok := v.(map[string]interface{}) m, ok := v.(map[string]interface{})
if !ok { if !ok {
continue continue

2
go.mod

@ -5,7 +5,7 @@ go 1.12
require ( require (
github.com/360EntSecGroup-Skylar/excelize/v2 v2.0.1 github.com/360EntSecGroup-Skylar/excelize/v2 v2.0.1
github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53 // indirect 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/chanxuehong/wechat v0.0.0-20200409104612-0a1fd76d7a3a
github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/elazarl/go-bindata-assetfs v1.0.0 // indirect github.com/elazarl/go-bindata-assetfs v1.0.0 // indirect

2
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.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 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.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/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 h1:yC9izuZEphojb9r+KYL4W9IJKO/ceIO8HDwxMA24U4c=
github.com/bndr/gotabulate v1.1.2/go.mod h1:0+8yUgaPTtLRTjf49E8oju7ojpU11YmXyvq1LbPAb3U= github.com/bndr/gotabulate v1.1.2/go.mod h1:0+8yUgaPTtLRTjf49E8oju7ojpU11YmXyvq1LbPAb3U=

2
models/sign_up.go

@ -15,7 +15,7 @@ type SignUp struct {
OnlyInvitation int `json:"only_invitation"` OnlyInvitation int `json:"only_invitation"`
LogoUrl string `json:"logo_url"` LogoUrl string `json:"logo_url"`
RealSignJsonForm []interface{} `json:"real_sign_json_form"` 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"` SignMethod int `json:"sign_method"`
RealSignListPath string `json:"real_sign_list_path"` RealSignListPath string `json:"real_sign_list_path"`
IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"` IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"`

Loading…
Cancel
Save