1
This commit is contained in:
@@ -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) {
|
func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVerifyCode string, inAuthInfo, manTokenInfo *auth2.AuthInfo) (outAuthInfo *auth2.AuthInfo, err error) {
|
||||||
var mobileAuth *auth2.AuthInfo
|
var mobileAuth *auth2.AuthInfo
|
||||||
fakeMobile := false
|
fakeMobile := false
|
||||||
//user.Type = model.UserTypeConsumer | model.UserTypeStoreBoss // 先不区分商户与消息者
|
user.Type = model.UserTypeConsumer | model.UserTypeStoreBoss // 先不区分商户与消息者
|
||||||
user.Type = model.UserTypeConsumer // 注册用户全是1(消费者)
|
|
||||||
createName := ctx.GetRealRemoteIP()
|
createName := ctx.GetRealRemoteIP()
|
||||||
authType := auth2.AuthTypeMobile
|
authType := auth2.AuthTypeMobile
|
||||||
if manTokenInfo != nil && mobileVerifyCode == "" {
|
if manTokenInfo != nil && mobileVerifyCode == "" {
|
||||||
|
|||||||
@@ -37,5 +37,7 @@ func TestCancelWaybill(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test11(t *testing.T) {
|
func Test11(t *testing.T) {
|
||||||
fmt.Println(1|2)
|
aa :=1
|
||||||
|
|
||||||
|
fmt.Println(aa |= model.UserTypeStoreBoss)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user