修正SetMTPSStatus调用

This commit is contained in:
平凡梦
2020-07-09 10:25:39 +08:00
parent 8e51dbfec1
commit c96bc4d859

View File

@@ -1283,7 +1283,8 @@ func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) {
globals.SugarLogger.Debug("StoreOpenAll skuID is start ")
globals.SugarLogger.Debug("StoreId", "CourierStatus", StoreId, CourierStatus)
/*获取美团门店信息*/
if StoreId != 0 && CourierStatus != 0 {
//&& CourierStatus != 0
if StoreId != 0 {
StoreLists, _ := dao.GetStoreList(nil, []int{StoreId}, nil, nil, nil, "")
StoreInfoList, _ := api.MtpsAPI.GetStoreStatus(StoreLists[0].Name)
if StoreInfoList != nil && StoreInfoList.PoiName != "" {