* finish task #8091.

This commit is contained in:
z
2020-10-09 09:13:29 +08:00
parent 677fa52863
commit 3d0ccb781d
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ class wechatapi
$url = $this->apiUrl . 'message/send?access_token=' . $this->token;
$response = common::http($url, json_encode($message), array(), array('Content-Type: text/plain'));
$errors = commonModel::$errors;
$errors = commonModel::$requestErrors;
$response = json_decode($response);
if(isset($response->errcode) and $response->errcode == 0) return array('result' => 'success');
@@ -134,7 +134,7 @@ class wechatapi
public function queryAPI($url)
{
$response = common::http($curl);
$errors = commonModel::$errors;
$errors = commonModel::$requestErrors;
$response = json_decode($response);
if(isset($response->errcode) and $response->errcode == 0) return $response;