1
This commit is contained in:
@@ -592,16 +592,17 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
for k, _ := range storeIDsMap {
|
||||
storeIDs2 = append(storeIDs2, k)
|
||||
}
|
||||
roleInfo, _ := GetUserRoleList(ctx, ctx.GetUserID())
|
||||
for _, v := range roleInfo {
|
||||
storeIDs2 = append(storeIDs2, v.StoreID)
|
||||
}
|
||||
} else {
|
||||
//storeIDs2 = append(storeIDs2, -1)l
|
||||
// 商家小程序用户切换门店,如果角色storeIDsMap没有数据则查询传入数据
|
||||
storeIDs2 = append(storeIDs2, int(utils.Interface2Int64WithDefault(params["storeID"], 0)))
|
||||
}
|
||||
}
|
||||
roleInfo, _ := GetUserRoleList(ctx, ctx.GetUserID())
|
||||
for _, v := range roleInfo {
|
||||
storeIDs2 = append(storeIDs2, v.StoreID)
|
||||
}
|
||||
|
||||
if data, err := json.Marshal(storeIDs2); err == nil {
|
||||
params["storeIDs"] = string(data)
|
||||
}
|
||||
|
||||
@@ -381,6 +381,8 @@ func (c *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, vendorOrgCod
|
||||
} else {
|
||||
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, model.DefaultUserIdCaiShi, fmt.Sprintf("菜市美团门店被下线了:门店id[%d],平台门店id[%s]", storeID, vendorStoreID), "!")
|
||||
}
|
||||
store := fmt.Sprintf("%s:下线美团门店,门店id[%s]", ctx.GetUserName(), vendorStoreID)
|
||||
event.AddOperateEvent(ctx, ctx.GetTrackInfo(), store, "", "", 10, "UpdateStore")
|
||||
}
|
||||
} else {
|
||||
if err = getAPI(vendorOrgCode, storeID, vendorStoreID).PoiOnline(vendorStoreID); err == nil { // 这个函数成功返回也并不表示上线成功。。。
|
||||
@@ -404,7 +406,7 @@ func (c *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, vendorOrgCod
|
||||
} else {
|
||||
err = errors.New("门店还未上线,不能修改营业状态")
|
||||
}
|
||||
store := fmt.Sprintf("美团外卖回调门店改变回调(营业状态/审核状态):门店id:%s,美团门店状态:%d.[121营业,120休息,18上线,19下线],本地修改后状态[%d]", vendorStoreID, remoteStoreInfo.OpenLevel, openLevel)
|
||||
store := fmt.Sprintf("%s:美团外卖回调门店改变回调(营业状态/审核状态):门店id:%s,美团门店状态:%d.[121营业,120休息,18上线,19下线],本地修改后状态[%d]", ctx.GetUserName(), vendorStoreID, remoteStoreInfo.OpenLevel, openLevel)
|
||||
event.AddOperateEvent(ctx, ctx.GetTrackInfo(), store, "", "", 10, "UpdateStore")
|
||||
}
|
||||
}
|
||||
@@ -512,6 +514,7 @@ func (c *PurchaseHandler) UpdateStoreLineStatus(ctx *jxcontext.Context, vendorOr
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
store := fmt.Sprintf("%s 修改:美团外卖门店改变回调(营业状态/审核状态):门店id:%s,本地修改后状态[%d]", ctx.GetUserName(), storeID, lineStatus)
|
||||
event.AddOperateEvent(ctx, ctx.GetTrackInfo(), store, "", "", 10, "UpdateStore")
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user