From ade4e8980fae1ae763ae09578dc475b08f38e65e Mon Sep 17 00:00:00 2001 From: weigang Date: Wed, 23 Sep 2020 11:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E7=9F=AD=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v3/Implementations/SeparateAccountsService.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Service/v3/Implementations/SeparateAccountsService.php b/app/Service/v3/Implementations/SeparateAccountsService.php index 59e485a..40e7e03 100644 --- a/app/Service/v3/Implementations/SeparateAccountsService.php +++ b/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); }); }