- GetUsers支持分页

This commit is contained in:
gazebo
2019-08-14 11:32:20 +08:00
parent 4c484a6280
commit f788eec5c1
6 changed files with 29 additions and 11 deletions

View File

@@ -438,7 +438,7 @@ func HandleUserWXRemark(db *dao.DaoDB, mobile string) (err error) {
storeID = wxinfo.JxStoreID
}
} else {
userList, err2 := dao.GetUsers(db, model.UserTypeStoreBoss, "", nil, "", mobile)
userList, _, err2 := dao.GetUsers(db, model.UserTypeStoreBoss, "", nil, "", mobile, 0, -1)
if err = err2; len(userList) > 0 {
userID := userList[0].GetID()
authBind, err2 := dao.GetAuthBind(db, userID, weixin.AuthTypeMP, "")