1
This commit is contained in:
@@ -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) {
|
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 // 先不区分商户与消息者
|
//user.Type = model.UserTypeConsumer // 先不区分商户与消息者
|
||||||
createName := ctx.GetRealRemoteIP()
|
createName := ctx.GetRealRemoteIP()
|
||||||
authType := auth2.AuthTypeMobile
|
authType := auth2.AuthTypeMobile
|
||||||
if manTokenInfo != nil && mobileVerifyCode == "" {
|
if manTokenInfo != nil && mobileVerifyCode == "" {
|
||||||
|
|||||||
@@ -186,14 +186,14 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
store1:= fmt.Sprintf("门店id:%d,门店名称:%s,第三方门店状态:%d,本地修改前门店状态%d,本地门店修改后状态:%d,第三方平台Id(京东):%d", storeID,store.Name, 0, store.Status, jxutils.MergeStoreStatus(store.Status, store.VendorStatus),store.VendorOrgCode)
|
store1 := fmt.Sprintf("门店id:%d,门店名称:%s,第三方门店状态:%d,本地修改前门店状态%d,本地门店修改后状态:%d,第三方平台Id(京东):%s", storeID, store.Name, 0, store.Status, jxutils.MergeStoreStatus(store.Status, store.VendorStatus), store.VendorOrgCode)
|
||||||
event.AddOperateEvent(jxcontext.AdminCtx, jxcontext.AdminCtx.GetTrackInfo(), store1, "", "", 10, "UpdateStore")
|
event.AddOperateEvent(jxcontext.AdminCtx, jxcontext.AdminCtx.GetTrackInfo(), store1, "", "", 10, "UpdateStore")
|
||||||
err = getAPI("2").UpdateBasic(param)
|
err = getAPI("2").UpdateBasic(param)
|
||||||
}
|
}
|
||||||
if store.SyncStatus&model.SyncFlagStoreStatus != 0 {
|
if store.SyncStatus&model.SyncFlagStoreStatus != 0 {
|
||||||
mergedStoreStatus := jxutils.MergeStoreStatus(store.Status, store.VendorStatus)
|
mergedStoreStatus := jxutils.MergeStoreStatus(store.Status, store.VendorStatus)
|
||||||
p.UpdateStoreStatus(jxcontext.AdminCtx, store.VendorOrgCode, storeID, store.VendorStoreID, mergedStoreStatus)
|
p.UpdateStoreStatus(jxcontext.AdminCtx, store.VendorOrgCode, storeID, store.VendorStoreID, mergedStoreStatus)
|
||||||
store1:= fmt.Sprintf("门店id:%d,门店名称:%s,第三方门店状态:%d,本地修改前门店状态%d,本地门店修改后状态:%d,第三方平台Id(京东):%d", storeID,store.Name, 100, store.Status, mergedStoreStatus,store.VendorOrgCode)
|
store1 := fmt.Sprintf("门店id:%d,门店名称:%s,第三方门店状态:%d,本地修改前门店状态%d,本地门店修改后状态:%d,第三方平台Id(京东):%s", storeID, store.Name, 100, store.Status, mergedStoreStatus, store.VendorOrgCode)
|
||||||
event.AddOperateEvent(jxcontext.AdminCtx, jxcontext.AdminCtx.GetTrackInfo(), store1, "", "", 10, "UpdateStore")
|
event.AddOperateEvent(jxcontext.AdminCtx, jxcontext.AdminCtx.GetTrackInfo(), store1, "", "", 10, "UpdateStore")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user