门店状态修改
This commit is contained in:
@@ -152,11 +152,17 @@ func OnStoreStatus(msg *fnpsapi.ChainstoreStatusNotify) (retVal *fnpsapi.Callbac
|
|||||||
// 修改本地门店审核状态
|
// 修改本地门店审核状态
|
||||||
func (c *DeliveryHandler) OnStoreStatus(msg *fnpsapi.ChainstoreStatusNotify) (retVal *fnpsapi.CallbackResponse) {
|
func (c *DeliveryHandler) OnStoreStatus(msg *fnpsapi.ChainstoreStatusNotify) (retVal *fnpsapi.CallbackResponse) {
|
||||||
var status int = 0
|
var status int = 0
|
||||||
if msg.Param.Status != "" {
|
switch msg.CallbackBusinessType {
|
||||||
status = int(utils.ForceInterface2Int64(msg.Param.Status))
|
case "chainstoreStatusNotify": // 门店状态
|
||||||
} else {
|
if msg.Param.Status != "" {
|
||||||
status = int(utils.ForceInterface2Int64(msg.Param.ModifyStatus))
|
status = int(utils.ForceInterface2Int64(msg.Param.Status)) // 10-上架审核中,20-正常(已上架), 30-上架审核失败,40-已冻结,50-已下架
|
||||||
|
} else {
|
||||||
|
status = int(utils.ForceInterface2Int64(msg.Param.ModifyStatus))// 0-无修改,10-资料修改审核中, 20-审核通过,30-审核驳回
|
||||||
|
}
|
||||||
|
case "chainstoreServiceStatusNotify": // 配送范围变更回调
|
||||||
|
status = 20
|
||||||
}
|
}
|
||||||
|
|
||||||
err := partner.CurStoreManager.OnCourierStoreStatusChanged(
|
err := partner.CurStoreManager.OnCourierStoreStatusChanged(
|
||||||
jxcontext.AdminCtx,
|
jxcontext.AdminCtx,
|
||||||
utils.Interface2String(msg.Param.OutShopCode),
|
utils.Interface2String(msg.Param.OutShopCode),
|
||||||
@@ -174,5 +180,5 @@ type ChainstoreParam struct {
|
|||||||
OutShopCode string `json:"out_shop_code"` // 外部门店编码
|
OutShopCode string `json:"out_shop_code"` // 外部门店编码
|
||||||
Status string `json:"status"` // 门店认证状态
|
Status string `json:"status"` // 门店认证状态
|
||||||
ModifyStatus string `json:"modify_status"` // 门店修改状态
|
ModifyStatus string `json:"modify_status"` // 门店修改状态
|
||||||
Remark string `json:"remark "` // 门店认证、修改等驳回时返回原因
|
Remark string `json:"remark "` // 门店认证、修改等驳回时返回原因
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user