|
|
|
@ -256,7 +256,7 @@ func CheckOpenId(openId string) (bool, error, int64, string) {
|
|
|
|
|
|
|
|
|
|
//绑定微信的用户
|
|
|
|
|
func BindWxUser(identityId string, personId string, openid string) (bool, error) {
|
|
|
|
|
sql := `update t_sys_loginperson set openid=? where identity_id=? and person_id=?`
|
|
|
|
|
sql := `update t_sys_loginperson set wx_open_id=? where identity_id=? and person_id=?`
|
|
|
|
|
_, err := db.SQL(sql, openid, identityId, personId).Execute()
|
|
|
|
|
if err != nil {
|
|
|
|
|
return false, err
|
|
|
|
|