|
|
|
@ -146,8 +146,8 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface |
|
|
|
$award['new_user_reward'] |
|
|
|
); |
|
|
|
// 发送短信
|
|
|
|
co(function () use ($communityBind, $award) { |
|
|
|
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $award['new_user_reward']); |
|
|
|
co(function () use ($communityBind, $award, $orderMain) { |
|
|
|
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $award['new_user_reward'], $orderMain); |
|
|
|
}); |
|
|
|
$this->financialRecordService->communityAwardByPlatNewUserFirstOLOrder( |
|
|
|
$communityBind->source_id, |
|
|
|
@ -155,16 +155,16 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface |
|
|
|
$award['first_reward'] |
|
|
|
); |
|
|
|
// 发送短信
|
|
|
|
co(function () use ($communityBind, $award) { |
|
|
|
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $award['first_reward']); |
|
|
|
co(function () use ($communityBind, $award, $orderMain) { |
|
|
|
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $award['first_reward'], $orderMain); |
|
|
|
}); |
|
|
|
} |
|
|
|
// 账单分成
|
|
|
|
$money = bcmul($orderMain->money, bcdiv($award['flow_reward'], 100, 6), 2); |
|
|
|
$this->financialRecordService->communitySeparateAccountsByOrderComp($communityBind->source_id, $orderMain->global_order_id, $money); |
|
|
|
// 发送短信
|
|
|
|
co(function () use ($communityBind, $money) { |
|
|
|
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $money); |
|
|
|
co(function () use ($communityBind, $money, $orderMain) { |
|
|
|
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $money, $orderMain); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|