diff --git a/application/admin/controller/wdsxh/member/apply/Apply.php b/application/admin/controller/wdsxh/member/apply/Apply.php index f966979..ec86111 100644 --- a/application/admin/controller/wdsxh/member/apply/Apply.php +++ b/application/admin/controller/wdsxh/member/apply/Apply.php @@ -1,6 +1,6 @@ membership_apply_successful_notify($member_data['mobile']); + } + $this->success(); } @@ -383,6 +389,24 @@ class Apply extends Backend } } + private function membership_apply_successful_notify($phoneNumbers) + { + $configObj = (new \app\admin\model\wdsxh\Config())->where('id', 1)->find(); + if (!empty($configObj['alibaba_cloud_sign_name']) + && !empty($configObj['alibaba_cloud_access_key_id']) + && !empty($configObj['alibaba_cloud_access_key_secret']) + && !empty($configObj['alibaba_membership_apply_successful_notify']) + && !empty($phoneNumbers) + ) { + $userSendSmsRequestParam = [ + "phoneNumbers" => $phoneNumbers, + "templateCode" => $configObj['alibaba_membership_apply_successful_notify'], + ]; + + AlibabaCloudSms::main($userSendSmsRequestParam); + } + } + /** * Desc 驳回 * Create on 2024/3/7 15:56