测试SetMTPSStatus调用
This commit is contained in:
@@ -1280,7 +1280,7 @@ func SyncSkuExperfixAndWatermark(ctx *jxcontext.Context) (err error) {
|
||||
}
|
||||
|
||||
func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) {
|
||||
globals.SugarLogger.Debug("StoreOpenAll skuID is start ")
|
||||
globals.SugarLogger.Debug("SetMTPSStatus is start ")
|
||||
globals.SugarLogger.Debug("StoreId", "CourierStatus", StoreId, CourierStatus)
|
||||
/*获取美团门店信息*/
|
||||
//&& CourierStatus != 0
|
||||
@@ -1288,8 +1288,8 @@ func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) {
|
||||
StoreLists, _ := dao.GetStoreList(nil, []int{StoreId}, nil, nil, nil, "")
|
||||
globals.SugarLogger.Debug("StoreLists[0].Name", StoreLists[0].Name)
|
||||
StoreInfoList, _ := api.MtpsAPI.GetStoreStatus(StoreLists[0].Name)
|
||||
globals.SugarLogger.Debug("美团查询结果", StoreInfoList)
|
||||
if StoreInfoList != nil && StoreInfoList.PoiName != "" {
|
||||
globals.SugarLogger.Debug("美团查询结果", StoreInfoList.PoiName, StoreInfoList.OpenType)
|
||||
if StoreInfoList.PoiName != "" {
|
||||
//若存在且名字不为空,就是找到了
|
||||
if StoreInfoList.OpenType != CourierStatus {
|
||||
sl := make(map[string]interface{})
|
||||
@@ -1385,5 +1385,5 @@ func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) {
|
||||
}
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debug("StoreOpenAll skuID is Complete")
|
||||
globals.SugarLogger.Debug("SetMTPSStatus is Complete")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user