|
|
@ -168,11 +168,13 @@ class Server |
|
|
|
$url = 'https://api.weixin.qq.com/wxa/commit?access_token=' . $access_token; |
|
|
|
$url = 'https://api.weixin.qq.com/wxa/commit?access_token=' . $access_token; |
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
$result = json_decode($result, true); |
|
|
|
$result = json_decode($result, true); |
|
|
|
|
|
|
|
return $result; |
|
|
|
if ($result && !empty($result['errmsg']) && $result['errmsg'] == 'ok') { |
|
|
|
if ($result && !empty($result['errmsg']) && $result['errmsg'] == 'ok') { |
|
|
|
$model->update(['version' => $version . $desc], ['id' => $info['id']]); |
|
|
|
$model->update(['version' => $version . $desc], ['id' => $info['id']]); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|