Skip to content

Commit

Permalink
Merge pull request #17 from goodspb/ucpaasAgent
Browse files Browse the repository at this point in the history
ucpaasAgent发送失败
  • Loading branch information
toplan committed Sep 24, 2015
2 parents f38bd24 + 669cbb5 commit c005822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Toplan/LaravelSms/agents/UcpaasAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function sendTemplateSms($tempId, $to, Array $data)
'token' => $this->accountToken
];
$ucpaas = new \Ucpaas($config);
$response = $ucpaas->templateSMS($this->appId, $to, $tempId, $data);
$response = $ucpaas->templateSMS($this->appId, $to, ( $tempId ?: $this->verifySmsTemplateId ) , implode(',',$data));
$result = json_decode($response);
if ($result != null && $result->resp->respCode == '000000') {
$this->result['success'] = true;
Expand Down Expand Up @@ -80,4 +80,4 @@ public function voiceVerify($to, $code)
$this->result['code'] = $result->resp->respCode;
return $this->result;
}
}
}

0 comments on commit c005822

Please sign in to comment.