This commit is contained in:
邹宗楠
2023-03-30 18:08:56 +08:00
parent 1dd7c656d0
commit 69040cd1cf
2 changed files with 8 additions and 8 deletions

View File

@@ -159,8 +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 // 先不区分商户与消息者
user.Type = model.UserTypeConsumer | model.UserTypeStoreBoss // 先不区分商户与消息者
//user.Type = model.UserTypeConsumer // 先不区分商户与消息者
createName := ctx.GetRealRemoteIP()
authType := auth2.AuthTypeMobile
if manTokenInfo != nil && mobileVerifyCode == "" {