当前位置:网站首页>How to enable the SMS function of alicloud for crmeb knowledge payment
How to enable the SMS function of alicloud for crmeb knowledge payment
2022-06-23 12:56:00 【InfoQ】




/**
* Send a text message
* @param string $tel SMS number
* @param string $setSignName SMS signature
* @param string $setTemplateCode SMS template ID
* @param array $setTemplateParam Content of short message
* @param string $setOutId External pipeline extension field
*/
public static function sendmsg($tel = '', $setTemplateCode = '', $setTemplateParam = [], $setOutId = '')
{
try {
self::init();
$result = AlibabaCloud::rpc()
->product('Dysmsapi')
->version('2017-05-25')
->action('SendSms')
->method('POST')
->host('dysmsapi.aliyuncs.com')
->options([
'query' => [
'RegionId' => "cn-hangzhou",
'PhoneNumbers' => $tel,
'SignName' => SystemConfigService::get('smsSignName'),
'TemplateCode' => $setTemplateCode,
'TemplateParam' => json_encode(is_array($setTemplateParam) ? $setTemplateParam : ['code' => $setTemplateParam]),
],
])->request()->toArray();
return $result;
} catch (ClientException $e) {
return false;
} catch (ServerException $e) {
return false;
}
}
link : https://pan.baidu.com/s/14G-bpVthImHD4eosZUNSFA?pwd=yu27
Extraction code : yu27Open source address
边栏推荐
- QT knowledge: detailed explanation of view frame qgraphicswidget
- R语言使用MASS包的polr函数构建有序多分类logistic回归模型、使用exp函数和coef函数获取模型中每个变量(自变量改变一个单位)对应的优势比(odds ratio)
- Halcon knowledge: binocular_ Discrimination knowledge
- 深入思考:《盖亚奥特曼》中部分情景深度分析及反射出的哲理与感悟
- 一个 BUG 开发表示用户不会这样操作,无需修复,测试人员如何应对?
- Oracle数据库的主导地位被云竞争对手逐渐侵蚀
- Meta 称英国安全法将“扫描所有私人信息”,有侵犯用户隐私风险
- Unity learning day14 -- collaboration and WWW
- Deep thinking: in-depth analysis of some scenes in Gaia Altman and the philosophy and perception reflected
- mysql中innodb下的redo log什么时候开始执行check point落盘的?
猜你喜欢

User behavior modeling

根据你的工作经历,说说软件测试中质量体系建设

With 32 qubits! Rigetti computing enters the UK quantum computing market

测试时间不够怎么办?

SQL adds the problem of duplicate table records.

Huawei cloud gaussdb heavily released HTAP for commercial use, defining a new paradigm of cloud native database 2.0

Wallys/DR6018-S/ 802.11AX MU-MIMO OFDMA / 2* GE PORTS/WIFI 6e / BAND DUAL CONCURRENT

Homekit supports the matter protocol. What does this imply?

Basic data type and corresponding packing class

mysql中innodb下的redo log什么时候开始执行check point落盘的?
随机推荐
【UVM入门 ===> Episode_7 】~ sequence、sequence item、sequencer、driver
R language dplyr package mutate_ The all function multiplies all numeric columns (variables) in the dataframe by a fixed value to generate a new data column, and specifies a user-defined suffix name f
AssetBundle resource management
10-- construct binary tree according to middle order traversal and post order traversal
Object pool framework
How can testers get started quickly when they change jobs to a new company?
对象池框架
Photon network framework
What should I do if a serious bug occurs within the scope of my own test and I am about to go online?
Solution: argument type 'string' expected to be an instance of a class or class constrained type
国产化信息 | 爱可生与中科方德完成产品兼容互认证
What if the test time is not enough?
[system architecture] - five styles of software architecture
2022 construction worker - decoration direction - post skills (construction worker) operation certificate examination question bank simulated examination platform operation
解决:Argument type ‘String‘ expected to be an instance of a class or class-constrained type
深入思考:《盖亚奥特曼》中部分情景深度分析及反射出的哲理与感悟
Oracle数据库的主导地位被云竞争对手逐渐侵蚀
QT knowledge: QT widgets widget function [02]
The median annual salary exceeds 300000, and the salary of the first AI major graduate of Nanjing University is exposed
DevEco Device Tool 助力OpenHarmony设备开发