From 1a8ab3fd7eee8edbadd26312e19401af5ef40f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 18 May 2022 15:15:10 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/user2.go | 3 +-- business/partner/delivery/mtps/waybill_test.go | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/user2.go b/business/jxstore/cms/user2.go index 76462ee67..d6344c663 100644 --- a/business/jxstore/cms/user2.go +++ b/business/jxstore/cms/user2.go @@ -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 == "" { diff --git a/business/partner/delivery/mtps/waybill_test.go b/business/partner/delivery/mtps/waybill_test.go index ca3b16b1b..bbcf1630e 100644 --- a/business/partner/delivery/mtps/waybill_test.go +++ b/business/partner/delivery/mtps/waybill_test.go @@ -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) } \ No newline at end of file