- set parentid to -1 when create weixins in weixin.BindMobile

This commit is contained in:
gazebo
2018-10-31 19:32:43 +08:00
parent c0d5fc60b0
commit 50d807d761

View File

@@ -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 {