当前位置:网站首页>Crmeb second open SMS function tutorial
Crmeb second open SMS function tutorial
2022-06-23 13:39:00 【CRMEB】
The knowledge payment SMS function supports both Alibaba cloud SMS and crmeb SMS , When we use it, we only need to choose one of two .
So how can we turn on the SMS function of Alibaba cloud ?
First step : First, enter the Alibaba cloud console , In Alibaba cloud SMS module , The application requires a new SMS template
The second step : In the general background of knowledge payment -> system maintenance -> Development configuration -> Configuration classification -> Add a new SMS template under SMS configuration id Save configuration

Click on “ SMS configuration ” name , Enter the sub configuration under SMS configuration

Click Add configuration , choice ‘ The text box ’ type , Fill in the configuration below , Submit configuration

After submission , Get into “ System settings -> System settings -> Alicloud configuration -> SMS configuration ”, Here we can see our new SMS template id To configure .

The third step : Call alicloud SMS interface , Send a text message
The root directory of knowledge payment source code ”extend/service/AliMessageService” Under the sendmsg The method is the sending method of Alibaba cloud SMS ;
$tel: Receive phone number
$setTemplateCode : SMS template ID
$setTemplateParam : Content of short message Parameters are arrays
$setOutId : Can be null
/**
* 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;
}
}
What if you send text messages ?
AliMessageService::sendmsg( t e l , tel, tel,setTemplateCode,$setTemplateParam);
For example, the sending of our login verification code

p h o n e yes Pick up closed Of hand machine Number , phone Is the received mobile number , phone yes Pick up closed Of hand machine Number ,smsTemplateCode Is the SMS template ID ,[‘code’ => $code] This is the content of the SMS ; In this way, the transmission is successful .
The source code attachment has been packaged and uploaded to Baidu cloud , You can download it yourself ~
link : https://pan.baidu.com/s/14G-bpVthImHD4eosZUNSFA?pwd=yu27
Extraction code : yu27
Baidu cloud link is unstable , It may fail at any time , Let's keep it tight .
If Baidu cloud link fails , Please leave me a message , When I see it, I will update it in time ~
Open source address
Code cloud address :
http://github.crmeb.net/u/defu
Github Address :
http://github.crmeb.net/u/defu
边栏推荐
- 618's money saving technology strategy is coming - experience the scene and get a 10 yuan cat super card!
- 【深入理解TcaplusDB技术】单据受理之事务执行
- Develop a powerful tool for increasing efficiency - vscode plug-in sharing in 2022
- 深入剖析MobileNet和它的变种
- Stick to five things to get you out of your confusion!
- 能把SAP系统玩成鸡肋的公司,太有才了!
- Germancreditdata of dataset: a detailed introduction to the introduction, download and use of germancreditdata dataset
- 利用XtraDiagram.DiagramControl进行流程图形的绘制和控制
- 4-way telephone +1-way Gigabit Ethernet 4-way PCM telephone optical transceiver
- Have you ever encountered incompatibility between flink1.15.0 and Flink CDC MySQL 2.2.1? f
猜你喜欢

The way out after the development of Internet technology -- the birth of IVX

Stick to five things to get you out of your confusion!

Dataset之GermanCreditData:GermanCreditData数据集的简介、下载、使用方法之详细攻略

1 channel 100m optical fiber transceiver 1 100m optical 1 100m electric desktop Ethernet optical fiber transceiver built-in power supply

Modelsim 安装步骤详解

你管这破玩意儿叫 MQ?

Windows install MySQL

美国的国家公园概览

4-way telephone +1-way Gigabit Ethernet 4-way PCM telephone optical transceiver

前AMD芯片架构师吐槽,取消 K12 处理器项目是因为 AMD 怂了!
随机推荐
4k-hdmi optical transceiver 1 channel [email protected] Hdmi2.0 optical transceiver HDMI HD video optical transceiver
Oracle中dbms_output.put_line怎么使用
quartus調用&設計D觸發器——仿真&時序波驗證
Stick to five things to get you out of your confusion!
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
实战监听Eureka client的缓存更新
Detailed description of Modelsim installation steps
Simplify deployment with openvino model server and tensorflow serving
【深入理解TcaplusDB技术】单据受理之事务执行
AAIG看全球6月刊(上)发布|AI人格真的觉醒了吗?NLP哪个细分方向最具社会价值?Get新观点新启发~
16 channel HD-SDI optical transceiver multi channel HD-SDI HD video optical transceiver 16 channel 3g-sdi HD audio video optical transceiver
父母-子女身高数据集的线性回归分析
Esp32-c3 introductory tutorial problem ⑦ - fatal error: ESP_ Bt.h: no such file or directory ESP not found_ bt.h
如何正确计算导入Excel的行数(POI/NPOI)
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
Runtime application self-protection (rasp): self-cultivation of application security
Have you ever encountered incompatibility between flink1.15.0 and Flink CDC MySQL 2.2.1? f
Quickly understand the commonly used asymmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry
5 technical vulnerabilities related to NFT
[deeply understand tcapulusdb technology] transaction execution of document acceptance