|
|
|
@ -13,10 +13,11 @@ declare (strict_types=1); |
|
|
|
|
namespace app\timer\service\dealer; |
|
|
|
|
|
|
|
|
|
use app\common\library\helper; |
|
|
|
|
use app\common\service\BaseService; |
|
|
|
|
use app\timer\library\Tools; |
|
|
|
|
use app\timer\model\dealer\User as DealerUserModel; |
|
|
|
|
use app\timer\model\dealer\Order as DealerOrderModel; |
|
|
|
|
use app\common\service\BaseService; |
|
|
|
|
use app\timer\model\dealer\User as DealerUserModel; |
|
|
|
|
use think\facade\Db; |
|
|
|
|
use think\model\Collection; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -57,6 +58,8 @@ class Order extends BaseService |
|
|
|
|
// 获取未结算的分销订单 |
|
|
|
|
$model = new DealerOrderModel; |
|
|
|
|
$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); |
|
|
|
|
// 记录日志 |
|
|
|
|