Skip to content

Commit c005822

Browse files
committed
Merge pull request #17 from goodspb/ucpaasAgent
ucpaasAgent发送失败
2 parents f38bd24 + 669cbb5 commit c005822

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)