当前位置:网站首页>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
边栏推荐
- kubernetes comfig subpath
- After the uncommitted transactions in the redo log buffer of MySQL InnoDB are persisted to the redo log, what happens if the transaction rollback occurs?
- R language uses matchit package for propensity matching analysis (set the matching method as nearest, match the control group and case group with the closest propensity score, 1:1 ratio), and use matc
- The filter function of dplyr package in R language filters the data rows containing the specified string in the specified data column of dataframe data based on the grepl function
- AssetBundle resource management
- 根据你的工作经历,说说软件测试中质量体系建设
- What are the criteria for judging the end of the test?
- 冷板式、浸没式、喷淋式液冷散热能否引领高性能计算发展?
- Network foundation and framework
- R语言dplyr包filter函数过滤dataframe数据中指定数据列的内容包含指定字符串的数据行、基于grepl函数
猜你喜欢

QT knowledge: using the qgraphicspixmapitem class

Unity learning day14 -- collaboration and WWW

Network foundation and framework

Qt5 knowledge: QT drawing graph

Qunhui 10 Gigabit network configuration and test

Qt5 knowledge: string list qstringlistmodel

Oracle database's dominant position is gradually eroded by cloud competitors

华为云GaussDB重磅发布HTAP商用,定义云原生数据库2.0新范式

Solve "thread 1:" -[*.collectionnormalcellview isselected]: unrecognized selector sent to instance 0x7F "

生态 | 万里数据库与卫士通完成兼容认证 共筑网络安全生态体系
随机推荐
跟循泰国国内游宣传曲MV,像本地人一样游曼谷
Interview question: for example, how do you do interface testing at work?
Deveco device tool helps openharmony device development
R language is used to build ordered multi classification logistic regression model, ordinal or. The display function obtains the summary statistical information of the ordered logistic regression mode
When did the redo log under InnoDB in mysql start to perform check point disk dropping?
企业该如何进行高效IT运维管理?
Ablebits Ultimate Suite for Excel
R语言dplyr包mutate_all函数将dataframe中的所有数值数值列(变量)乘以某一固定值并生成新的数据列,为新的数据列(变量)指定自定义后缀名称
Playing in Singapore in the hot summer: an inventory of indoor attractions and good places for night trips
Install rstudio desktop and rstudio server free version
sql增加表记录的重复问题。
国产化信息 | 爱可生与中科方德完成产品兼容互认证
After the uncommitted transactions in the redo log buffer of MySQL InnoDB are persisted to the redo log, what happens if the transaction rollback occurs?
QT knowledge: detailed explanation of view frame qgraphicswidget
Stimulsoft Ultimate Reports 2022.3.1
Photon network framework
Unity small demand - simple realization of imitation King Diamond (single draw)
C#部分——值类型和引用类型
[introduction to UVM== > episode_7] ~ sequence, sequence item, sequencer, driver
The GLM function of R language uses frequency data to build a binary logistic regression model. The input data for analysis is frequency data, which is transformed into normal sample data (split and s