Change templates to customize text message content

Open the Yunzhixun developer console,Find the template library in the text message

Click on the upper right Angular creation template

微信图片_20180312113026.png

There are three types of templates, take the verification class template as an example:

微信图片_20180312113650.png

Display of one parameter:

$param = base64_decode($_POST['yzm']);

If you need to pass in multiple parameters, you can modify the template and add one {2}

Modify the smsyzm.php file parameter configuration

$yzm=base64_decode($_POST['yzm']);//多个参数使用英文逗号隔开(如:param=“a,b,c”)
$name='smile';
$param="$yzm,$name";

The corresponding member templates are modified in the same way as the notification templates.

Continuing Learning
||
<?php echo "更改模板进行自定义设计短信内容";
submitReset Code