Skip to content

Commit 669cbb5

Browse files
committed
修复ucpaasAgent发送模板短信参数$param不能使用json形式,必须为字符寸(参数使用“,”分隔)
1 parent f38bd24 commit 669cbb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Toplan/LaravelSms/agents/UcpaasAgent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function sendTemplateSms($tempId, $to, Array $data)
5252
'token' => $this->accountToken
5353
];
5454
$ucpaas = new \Ucpaas($config);
55-
$response = $ucpaas->templateSMS($this->appId, $to, $tempId, $data);
55+
$response = $ucpaas->templateSMS($this->appId, $to, ( $tempId ?: $this->verifySmsTemplateId ) , implode(',',$data));
5656
$result = json_decode($response);
5757
if ($result != null && $result->resp->respCode == '000000') {
5858
$this->result['success'] = true;
@@ -80,4 +80,4 @@ public function voiceVerify($to, $code)
8080
$this->result['code'] = $result->resp->respCode;
8181
return $this->result;
8282
}
83-
}
83+
}

0 commit comments

Comments
 (0)