* change http to https.

This commit is contained in:
wangyidong
2018-09-25 13:11:06 +08:00
parent 0cdaeda9ab
commit f6cb04cd44
24 changed files with 49 additions and 67 deletions
+3 -3
View File
@@ -60,10 +60,10 @@ class installModel extends model
public function getLatestRelease()
{
if(!function_exists('json_decode')) return false;
$snoopy = $this->app->loadClass('snoopy');
if(@$snoopy->fetchText('http://www.zentao.net/misc-getlatestrelease.json'))
$result = common::http('http://www.zentao.net/misc-getlatestrelease.json');
if($result)
{
$result = json_decode($snoopy->results);
$result = json_decode($result);
if(isset($result->release) and $this->config->version != $result->release->version)
{
return $result->release;