- set parentid = -1 when create weixins.

This commit is contained in:
gazebo
2018-09-19 16:56:22 +08:00
parent b46461e62e
commit e7c5e5c143

View File

@@ -73,6 +73,7 @@ func BindMobile2Store(mobile string, storeID int) (num int64, err error) {
if err == nil {
num, err = dao.UpdateEntity(db, user, "JxStoreID")
} else {
user.ParentID = -1
if err = createUserAndSetOpenIDNull(db, user); err == nil {
num = 1
}