添加uniapp消息推送
This commit is contained in:
@@ -1229,6 +1229,21 @@ func UpdateUserLastInfo(ctx *jxcontext.Context, storeID, brandID int) (err error
|
||||
return err
|
||||
}
|
||||
|
||||
func SetUserCId(userId string, cid string) error {
|
||||
var db = dao.GetDB()
|
||||
userObj, err := dao.GetUserByID(db, "user_id", userId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if userObj.CID == "" || userObj.CID != cid {
|
||||
userObj.CID = cid
|
||||
_, err := dao.UpdateEntity(db, userObj, "CID")
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetUserStoreAuth(ctx *jxcontext.Context, storeID int) (outStoreID int, err error) {
|
||||
if permission.IsRoled(ctx) {
|
||||
configs, _ := dao.QueryConfigs(dao.GetDB(), "checkversion", model.ConfigTypeSys, "")
|
||||
|
||||
Reference in New Issue
Block a user