This commit is contained in:
苏尹岚
2020-04-13 09:34:59 +08:00
parent 55ecbdc6c2
commit e4b11a73cb
2 changed files with 2 additions and 1 deletions

View File

@@ -1985,7 +1985,7 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader) (hint stri
skuName.IsGlobal = model.YES
skuName.CategoryID = model.NoCatCatgoryID
skuName.Skus[0].Status = model.SkuStatusNormal
time.Sleep(time.Second / 4) //addskuname里下载图片有点问题所以设置一个时间。。
time.Sleep(time.Second / 2) //addskuname里下载图片有点问题所以设置一个时间。。
_, err = AddSkuName(ctx, skuName, ctx.GetUserName())
if err != nil {
createUpcSkuByExcelErrList = append(createUpcSkuByExcelErrList, buildCreateUpcSkuByExcelErr(v, err.Error()))

View File

@@ -181,6 +181,7 @@ func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVeri
if mobileAuth != nil && !mobileAuth.IsUserEmpty() {
auth2.RemoveUserInfo(mobileAuth.Token)
if newAuthInfo, err := auth2.BindUser(mobileAuth, user); err == nil {
globals.SugarLogger.Debugf("testRegisterUserWithMobile", utils.Format4Output(mobileAuth, false), utils.Format4Output(newAuthInfo, false))
return nil, jsonerr.New(newAuthInfo, model.ErrCodeJsonUserAlreadyExist)
} else {
return nil, err