Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45ccc9c

Browse files
committed
bugfix
1 parent e51720e commit 45ccc9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/logic/user.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ func (self UserLogic) CreateUser(ctx context.Context, form url.Values) (errMsg s
9090

9191
if form.Get("id") != "" {
9292
id := goutils.MustInt(form.Get("id"))
93-
_, err = DefaultWechat.Bind(ctx, id, user.Uid, form.Get("userinfo"))
93+
_, err = DefaultWechat.Bind(ctx, id, user.Uid, form.Get("userInfo"))
9494
if err != nil {
9595
session.Rollback()
9696
objLog.Errorln("bind wechat user error:", err)
97+
errMsg = err.Error()
9798
return
9899
}
99100
}

0 commit comments

Comments
 (0)