This commit is contained in:
suyl
2021-08-06 15:04:59 +08:00
parent e61fcb74b7
commit ee34c419bb

View File

@@ -1541,7 +1541,7 @@ func SetMTPSStatus2(storeID int) {
} }
stores, _ := dao.GetStoreCourierList(db, storeIDs, []int{model.VendorIDMTPS}, model.StoreStatusAll, model.StoreAuditStatusAll) stores, _ := dao.GetStoreCourierList(db, storeIDs, []int{model.VendorIDMTPS}, model.StoreStatusAll, model.StoreAuditStatusAll)
for _, v := range stores { for _, v := range stores {
storeDetail, _ := dao.GetStoreDetail2(db, v.StoreID, "", model.VendorIDMTPS) if storeDetail, _ := dao.GetStoreDetail2(db, v.StoreID, "", model.VendorIDMTPS); storeDetail != nil {
_, err := api.MtpsAPI.CheckOrder(v.VendorStoreID, storeDetail.Address, int64(storeDetail.Lng), int64(storeDetail.Lat), time.Now().Unix()) _, err := api.MtpsAPI.CheckOrder(v.VendorStoreID, storeDetail.Address, int64(storeDetail.Lng), int64(storeDetail.Lat), time.Now().Unix())
if mtpsapi.IsOpen(err) { if mtpsapi.IsOpen(err) {
sl := make(map[string]interface{}) sl := make(map[string]interface{})
@@ -1559,4 +1559,5 @@ func SetMTPSStatus2(storeID int) {
} }
} }
} }
}
} }