1
This commit is contained in:
@@ -90,12 +90,14 @@ func AutoSettingFakeDelivery() {
|
|||||||
globals.SugarLogger.Errorf("newConfig 刷单门店设置异常")
|
globals.SugarLogger.Errorf("newConfig 刷单门店设置异常")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("======configList : %s", utils.Format4Output(configList, false))
|
||||||
|
|
||||||
// 获取刷单门店订单
|
// 获取刷单门店订单
|
||||||
storeList := strings.Split(configList[0].Value, ",")
|
storeList := strings.Split(configList[0].Value, ",")
|
||||||
for _, v := range storeList {
|
for _, v := range storeList {
|
||||||
storeIdAndVendorId := strings.Split(v, "-")
|
storeIdAndVendorId := strings.Split(v, "-")
|
||||||
orderList, err := dao.GetOrderListByStoreList(db, []int64{utils.Str2Int64(storeIdAndVendorId[0])}, utils.Str2Int(storeIdAndVendorId[1]))
|
orderList, err := dao.GetOrderListByStoreList(db, []int64{utils.Str2Int64(storeIdAndVendorId[0])}, utils.Str2Int(storeIdAndVendorId[1]))
|
||||||
|
globals.SugarLogger.Debugf("======orderList : %s", utils.Format4Output(orderList, false))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globals.SugarLogger.Errorf("获取门店刷单记录错误")
|
globals.SugarLogger.Errorf("获取门店刷单记录错误")
|
||||||
continue
|
continue
|
||||||
@@ -123,6 +125,7 @@ func AutoSettingFakeDelivery() {
|
|||||||
riderKey = strings.Split(place.Name, "市")[0]
|
riderKey = strings.Split(place.Name, "市")[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("======riderKey : %s", utils.Format4Output(riderKey, false))
|
||||||
|
|
||||||
for _, v := range orderList {
|
for _, v := range orderList {
|
||||||
if len(riderListInfo[riderKey]) == model.NO {
|
if len(riderListInfo[riderKey]) == model.NO {
|
||||||
|
|||||||
Reference in New Issue
Block a user