Compare commits
1 Commits
dev
...
e467b450b2
| Author | SHA1 | Date | |
|---|---|---|---|
| e467b450b2 |
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | 麦沃德科技赋能开发者,助力商协会发展
|
// | 麦沃德科技赋能开发者,助力商协会发展
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Copyright (c) 2017~2024 www.wdsxh.cn All rights reserved.
|
// | 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();
|
$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'],
|
||||||
|
];
|
||||||
|
|
||||||
|
dump(AlibabaCloudSms::main($userSendSmsRequestParam));exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Desc 驳回
|
* Desc 驳回
|
||||||
* Create on 2024/3/7 15:56
|
* Create on 2024/3/7 15:56
|
||||||
|
|||||||
Reference in New Issue
Block a user