This commit is contained in:
邹宗楠
2022-05-18 15:15:10 +08:00
parent 4a619ade8c
commit 1a8ab3fd7e
2 changed files with 4 additions and 3 deletions

View File

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

View File

@@ -37,5 +37,7 @@ func TestCancelWaybill(t *testing.T) {
}
func Test11(t *testing.T) {
fmt.Println(1|2)
aa :=1
fmt.Println(aa |= model.UserTypeStoreBoss)
}