新京东账号
This commit is contained in:
@@ -1344,10 +1344,25 @@ func SetMTPSStatus(ctx *jxcontext.Context, storeId, courierStatus int) {
|
|||||||
/*如果通过API返回的名字也找不到*/
|
/*如果通过API返回的名字也找不到*/
|
||||||
goto ifNotExist
|
goto ifNotExist
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
StoreCourierList, _ := dao.GetStoreCourierList(dao.GetDB(), []int{storeId}, []int{model.VendorIDMTPS}, model.StoreStatusAll, model.StoreAuditStatusAll)
|
||||||
|
if len(StoreCourierList) > 0 {
|
||||||
|
ShopInfo, _ := api.MtpsAPI.GetStoreInfo(utils.Str2Int(StoreCourierList[0].VendorStoreID))
|
||||||
|
if ShopInfo != nil {
|
||||||
|
ShopName = ShopInfo[0].PoiName
|
||||||
|
StoreInfoList, _ = api.MtpsAPI.GetStoreStatus(ShopName)
|
||||||
|
if StoreInfoList != nil && StoreInfoList.DataList != nil {
|
||||||
|
goto ifExist
|
||||||
|
} else {
|
||||||
|
/*如果通过API返回的名字也找不到*/
|
||||||
|
goto ifNotExist
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
/*如果通过ID找不到,那就直接去判断名字*/
|
/*如果通过ID找不到,那就直接去判断名字*/
|
||||||
goto NameProblem
|
goto NameProblem
|
||||||
}
|
}
|
||||||
|
}
|
||||||
NameProblem:
|
NameProblem:
|
||||||
{
|
{
|
||||||
var NotOpen int
|
var NotOpen int
|
||||||
|
|||||||
Reference in New Issue
Block a user