pull/5/head
wanghousheng 5 months ago
parent 7780bbeffc
commit 915ffb4fa4
  1. 3
      app/timer/controller/dealer/Order.php
  2. 3
      app/timer/service/dealer/Order.php

@ -14,7 +14,6 @@ namespace app\timer\controller\dealer;
use app\timer\controller\Controller; use app\timer\controller\Controller;
use app\timer\service\dealer\Order as DealerOrderService; use app\timer\service\dealer\Order as DealerOrderService;
use think\facade\Db;
/** /**
* 定时任务:商城订单 * 定时任务:商城订单
@ -39,8 +38,6 @@ class Order extends Controller
public function handle(array $param) public function handle(array $param)
{ {
['storeId' => $this->storeId] = $param; ['storeId' => $this->storeId] = $param;
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($param), 'created_at' => date('Y-m-d H:i:s')]);
$this->setInterval($this->storeId, $this->taskKey, $this->taskExpire, function () { $this->setInterval($this->storeId, $this->taskKey, $this->taskExpire, function () {
echo $this->taskKey . PHP_EOL; echo $this->taskKey . PHP_EOL;
// 标记失效的分销订单 // 标记失效的分销订单

@ -17,7 +17,6 @@ use app\common\service\BaseService;
use app\timer\library\Tools; use app\timer\library\Tools;
use app\timer\model\dealer\Order as DealerOrderModel; use app\timer\model\dealer\Order as DealerOrderModel;
use app\timer\model\dealer\User as DealerUserModel; use app\timer\model\dealer\User as DealerUserModel;
use think\facade\Db;
use think\model\Collection; use think\model\Collection;
/** /**
@ -58,8 +57,6 @@ class Order extends BaseService
// 获取未结算的分销订单 // 获取未结算的分销订单
$model = new DealerOrderModel; $model = new DealerOrderModel;
$orderList = $model->getUnSettledList($storeId); $orderList = $model->getUnSettledList($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($orderList), 'created_at' => date('Y-m-d H:i:s')]);
// 发放分销订单佣金 // 发放分销订单佣金
$this->settlement($storeId, $orderList); $this->settlement($storeId, $orderList);
// 记录日志 // 记录日志

Loading…
Cancel
Save