Compare commits
2 Commits
e467b450b2
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| edbf275c9c | |||
| 34f2695002 |
@@ -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
|
||||
|
||||
@@ -400,6 +400,14 @@
|
||||
尊敬的${name},会员,您好!小程序有一条通知信息,请及时前往沃德商协会个人中心查看! </span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">会员入会申请审核通过通知模板:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-alibaba_initiation_admin_notify" class="form-control" name="row[alibaba_membership_apply_successful_notify]" type="text" value="{$row.alibaba_membership_apply_successful_notify|htmlentities}">
|
||||
<span class="help-block" style="color: #f11414">模板内容:
|
||||
【岳阳跨境电子商务协会】您的入会申请已通过。请完成会费缴纳,并登录小程序上传缴费凭证,以便激活会员权益。凭证审核通过后即可领取电子会员证。</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group layer-footer">
|
||||
@@ -411,4 +419,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user