- set weixins lastOperator correctly
This commit is contained in:
@@ -119,6 +119,7 @@ func BindMobile2Store(ctx *jxcontext.Context, mobile string, storeID int) (num i
|
|||||||
err = dao.SetWeiXinsEmpty2Null(db, user)
|
err = dao.SetWeiXinsEmpty2Null(db, user)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
dao.WrapAddIDCULEntity(user, ctx.GetUserName())
|
||||||
user.ParentID = -1
|
user.ParentID = -1
|
||||||
if err = dao.CreateWeiXins(db, user); err == nil {
|
if err = dao.CreateWeiXins(db, user); err == nil {
|
||||||
num = 1
|
num = 1
|
||||||
@@ -145,6 +146,7 @@ func AddMobile2Mobile(ctx *jxcontext.Context, parentMobile, mobile string) (num
|
|||||||
err = dao.SetWeiXinsEmpty2Null(db, user)
|
err = dao.SetWeiXinsEmpty2Null(db, user)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
dao.WrapAddIDCULEntity(user, ctx.GetUserName())
|
||||||
if err = dao.CreateWeiXins(db, user); err == nil {
|
if err = dao.CreateWeiXins(db, user); err == nil {
|
||||||
num = 1
|
num = 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user