京东修改门店状态无效,临时修改
This commit is contained in:
@@ -338,6 +338,15 @@ func (a *API) UpdateStoreInfo4Open2(updateParams *OpStoreParams, modifyCloseStat
|
||||
mapData := utils.Struct2MapByJson(updateParams)
|
||||
if !modifyCloseStatus {
|
||||
delete(mapData, "closeStatus")
|
||||
} else {
|
||||
jdStoreID, err := a.GetJdStoreID(int(utils.Str2Int64(updateParams.OutSystemID)))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = a.UpdateClosetStatus(jdStoreID, updateParams.CloseStatus)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if updateParams.ServiceTimeStart1 == 0 && updateParams.ServiceTimeEnd1 == 0 {
|
||||
delete(mapData, "serviceTimeStart1")
|
||||
|
||||
Reference in New Issue
Block a user