美团配送刷新

This commit is contained in:
苏尹岚
2020-09-15 09:18:17 +08:00
parent 8642c05a72
commit 8d44b1ca1c

View File

@@ -1331,9 +1331,9 @@ func SetMTPSStatus(ctx *jxcontext.Context, storeId, courierStatus int) {
goto ifExist
} else {
/*如果通过名字找不到那就先通过ID去找名字*/
ShopInfo, _ := api.MtpsAPI.ShopQuery(strconv.Itoa(storeId))
ShopInfo, _ := api.MtpsAPI.GetStoreInfo(storeId)
if ShopInfo != nil {
ShopName = ShopInfo.ShopName
ShopName = ShopInfo[0].PoiName
if ShopName == "" {
ShopName = StoreLists[0].Name[:len(StoreLists[0].Name)-3]
}