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); }); }