-
-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
修改yunxin无通知模板问题 #331
Comments
欢迎 PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
近日使用网易云信通知短信,报错,经检查无云信通知模板短信格式
做一下修改
`switch ($action) {
case 'sendCode':
$params = $this->buildSendCodeParams($to, $message, $config);
新增sendTemplate 以及参数格式函数buildSendMsgParams
`public function buildSendMsgParams(PhoneNumberInterface $to, MessageInterface $message, Config $config)
{
使用方法
$massage=[ 'template' => 'xxxx', 'data' => [ 'params' =>json_encode([$params]), 'action' => 'sendTemplate', ], ];
The text was updated successfully, but these errors were encountered: