新京东账号

This commit is contained in:
苏尹岚
2020-09-15 17:52:37 +08:00
parent 533c34fa48
commit 49197bb59d

View File

@@ -1345,8 +1345,23 @@ func SetMTPSStatus(ctx *jxcontext.Context, storeId, courierStatus int) {
goto ifNotExist
}
} else {
/*如果通过ID找不到那就直接去判断名字*/
goto NameProblem
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 {
/*如果通过ID找不到那就直接去判断名字*/
goto NameProblem
}
}
NameProblem:
{