feat: 完善协议管理、师傅资质认证、分账配置并完成测试环境全量部署与同步
这个提交包含在:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace app\admin\command;
|
||||
|
||||
use app\common\library\CommissionService;
|
||||
use app\common\library\OrderStatus;
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
@@ -47,9 +48,10 @@ class OrderAutoverify extends Command
|
||||
|
||||
$masterId = (int)$lockedOrder['master_id'];
|
||||
$payAmount = (float)$lockedOrder['pay_amount'];
|
||||
$rate = 10.00;
|
||||
$commission = round($payAmount * $rate / 100, 2);
|
||||
$settleAmount = round($payAmount - $commission, 2);
|
||||
$settleCalc = CommissionService::calcByOrder($lockedOrder);
|
||||
$rate = $settleCalc['commission_rate'];
|
||||
$commission = $settleCalc['commission'];
|
||||
$settleAmount = $settleCalc['settle_amount'];
|
||||
|
||||
// 1. 更新订单为已完成
|
||||
Db::name('order')->where('id', $orderId)->update([
|
||||
|
||||
在新工单中引用
屏蔽一个用户