diff --git a/app/timer/controller/dealer/Order.php b/app/timer/controller/dealer/Order.php index bcd9bfba..ef11d261 100644 --- a/app/timer/controller/dealer/Order.php +++ b/app/timer/controller/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; diff --git a/app/timer/model/dealer/Order.php b/app/timer/model/dealer/Order.php index dfdfff8f..07c3346f 100644 --- a/app/timer/model/dealer/Order.php +++ b/app/timer/model/dealer/Order.php @@ -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')]); } /**