pull/5/head
wanghousheng 5 months ago
parent c659838fb8
commit f25d9f2075
  1. 2
      app/timer/controller/dealer/Order.php
  2. 4
      app/timer/model/dealer/Order.php

@ -26,7 +26,7 @@ class Order extends Controller
private string $taskKey = 'DealerOrder';
// 任务执行间隔时长 (单位:秒)
protected int $taskExpire = 5;
protected int $taskExpire = 60 * 30;
// 当前商城ID
private int $storeId;

@ -15,7 +15,6 @@ namespace app\timer\model\dealer;
use app\common\enum\order\OrderStatus as OrderStatusEnum;
use app\common\model\dealer\Order as OrderModel;
use app\timer\model\dealer\Setting as DealerSettingModel;
use think\facade\Db;
/**
* 分销商订单模型
@ -41,8 +40,6 @@ class Order extends OrderModel
];
// 佣金结算天数
$filter[] = ['order.receipt_time', '<=', DealerSettingModel::getSettleTerm($storeId)];
Db::table('yoshop_wx_server')->insertGetId(['content' => "设置分销订单查询条件", 'created_at' => date('Y-m-d H:i:s')]);
Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($filter), 'created_at' => date('Y-m-d H:i:s')]);
// 获取订单列表记录
return $this->alias('m')
->field(['m.*'])
@ -53,7 +50,6 @@ class Order extends OrderModel
->where('m.is_settled', '=', 0)
->where('m.store_id', '=', $storeId)
->select();
Db::table('yoshop_wx_server')->insertGetId(['content' => Db::getLastSql(), 'created_at' => date('Y-m-d H:i:s')]);
}
/**

Loading…
Cancel
Save