Browse Source

社区短信

master
weigang 5 years ago
parent
commit
ade4e8980f
  1. 12
      app/Service/v3/Implementations/SeparateAccountsService.php

12
app/Service/v3/Implementations/SeparateAccountsService.php

@ -145,8 +145,8 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface
$award['new_user_reward']
);
// 发送短信
co(function () use ($orderMain, $award) {
$this->smsAliSendService->doCommunityFinancial($orderMain->user_id, $award['new_user_reward']);
co(function () use ($communityBind, $award) {
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $award['new_user_reward']);
});
$this->financialRecordService->communityAwardByPlatNewUserFirstOLOrder(
$communityBind->source_id,
@ -154,16 +154,16 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface
$award['first_reward']
);
// 发送短信
co(function () use ($orderMain, $award) {
$this->smsAliSendService->doCommunityFinancial($orderMain->user_id, $award['first_reward']);
co(function () use ($communityBind, $award) {
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $award['first_reward']);
});
}
// 账单分成
$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 ($orderMain, $money) {
$this->smsAliSendService->doCommunityFinancial($orderMain->user_id, $money);
co(function () use ($communityBind, $money) {
$this->smsAliSendService->doCommunityFinancial($communityBind->source_id, $money);
});
}

Loading…
Cancel
Save