修改注册普通用户权限为消费者1,之前是三门店老板和消费者

This commit is contained in:
邹宗楠
2022-05-18 15:07:28 +08:00
parent 5fb999840e
commit 4a619ade8c
3 changed files with 7 additions and 2 deletions

View File

@@ -159,7 +159,8 @@ func init() {
func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVerifyCode string, inAuthInfo, manTokenInfo *auth2.AuthInfo) (outAuthInfo *auth2.AuthInfo, err error) {
var mobileAuth *auth2.AuthInfo
fakeMobile := false
user.Type = model.UserTypeConsumer | model.UserTypeStoreBoss // 先不区分商户与消息者
//user.Type = model.UserTypeConsumer | model.UserTypeStoreBoss // 先不区分商户与消息者
user.Type = model.UserTypeConsumer // 注册用户全是1消费者
createName := ctx.GetRealRemoteIP()
authType := auth2.AuthTypeMobile
if manTokenInfo != nil && mobileVerifyCode == "" {