- set parentid to -1 when create weixins in weixin.BindMobile
This commit is contained in:
@@ -100,6 +100,7 @@ func BindMobile(token, mobileNum, code, nickname string) (err error) {
|
||||
OpenID: loginInfo.ID,
|
||||
Tel: mobileNum,
|
||||
NickName: nickname,
|
||||
ParentID: -1,
|
||||
}
|
||||
db := dao.GetDB()
|
||||
if err = dao.GetEntity(db, user, "OpenID"); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user