分润功能log

This commit is contained in:
chenbo 2024-01-26 12:02:44 +08:00
parent 75c65fd0f1
commit 3e481fde16
1 changed files with 2 additions and 2 deletions

View File

@ -212,11 +212,11 @@ class ShopCallController extends BaseApiController
// 计算分润 // 计算分润
if (!$userSelf->isEmpty()) { if (!$userSelf->isEmpty()) {
UserLogic::userProfit($userSelf, $orderMoney, $proportion, $orderNo); UserLogic::userProfit($userSelf, $orderMoney, $proportion, $orderNo);
$noticeUser[] = ['type' => 3, 'account' => $userSelf['account'], 'user_profit' => bcmul($orderMoney, 0.01, 2)]; $noticeUser[] = ['type' => 3, 'account' => $userSelf['account'], 'user_profit' => bcmul($orderMoney, 0.01)];
} }
if (!$courier->isEmpty()) { if (!$courier->isEmpty()) {
UserLogic::userProfit($courier, $orderMoney, $proportion, $orderNo); UserLogic::userProfit($courier, $orderMoney, $proportion, $orderNo);
$noticeUser[] = ['type' => 4, 'account' => $courier['account'], 'user_profit' => bcmul($orderMoney, 0.01, 2)]; $noticeUser[] = ['type' => 4, 'account' => $courier['account'], 'user_profit' => bcmul($orderMoney, 0.01)];
} }
$request['user'] = $noticeUser; $request['user'] = $noticeUser;