parent
4c9a1153f2
commit
22c84e4cd8
|
|
@ -48,6 +48,7 @@ class SparateLegumesJob implements JobInterface{
|
|||
foreach($orderList as $orderInfo){
|
||||
// 获取平台抽成信息
|
||||
$platformCommissionInfo = $platformCommissionRecord[$orderInfo['order_id']] ?? [];
|
||||
if($platformCommissionInfo){
|
||||
// 计算订单金额占比 必须进行100的偏移计算
|
||||
// $rate = (float)sprintf("%.3f",$orderInfo['sum_money'] / $totalMoney * 100);
|
||||
$rate = (float)sprintf("%.3f",$platformCommissionInfo['platform_commission_money'] / $totalPlatformCommission * 100);
|
||||
|
|
@ -65,6 +66,7 @@ class SparateLegumesJob implements JobInterface{
|
|||
'status' => in_array((int)$orderInfo['status'],[2,3]) ? 1 : 0,
|
||||
];
|
||||
}
|
||||
}
|
||||
// 添加数据
|
||||
if(count($insertData) > 0) app()->make(LegumesLogRepository::class)->insertAll($insertData);
|
||||
// 修改豆豆周期分配状态
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ return [
|
|||
'password' => env('redis.redis_password', ''),
|
||||
// 数据库 0号数据库
|
||||
'select' => (int)env('redis.select', 0),
|
||||
'prefix' => 'zcgs:',
|
||||
'tag_prefix'=> 'zcgs:'
|
||||
],
|
||||
// 更多的缓存连接
|
||||
],
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ return [
|
|||
'select' => (int)env('redis.select', 0),
|
||||
'timeout' => 0,
|
||||
'persistent' => false,
|
||||
'prefix' => 'zcgs:',
|
||||
'tag_prefix'=> 'zcgs:'
|
||||
],
|
||||
],
|
||||
'failed' => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue