后台 - 添加入会申请审核通短信通知缴费
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力商协会发展
|
||||
// | 麦沃德科技赋能开发者,助力商协会发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
@@ -356,6 +356,12 @@ class Apply extends Backend
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 审核通过短信通知其缴费
|
||||
if (!empty($member_data['mobile'])) {
|
||||
$this->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
|
||||
|
||||
Reference in New Issue
Block a user