diff --git a/app/admin/controller/Upgrade.php b/app/admin/controller/Upgrade.php index cc92bb4..c670548 100644 --- a/app/admin/controller/Upgrade.php +++ b/app/admin/controller/Upgrade.php @@ -36,6 +36,7 @@ class Upgrade extends AdminController public function __construct() { $this->sys_version = Config::get('taoler.version'); + $this->pn = Config::get('taoler.appname'); $this->sys = Db::name('system')->where('id',1)->find(); } @@ -94,7 +95,7 @@ class Upgrade extends AdminController //升级前的版本检测 public function check() { - $url = $this->sys['upcheck_url'].'?ver='.$this->sys_version; + $url = $this->sys['upcheck_url'].'?pn='.$this->pn.'&ver='.$this->sys_version; $versions = Api::urlGet($url); //判断服务器状态 @@ -136,7 +137,7 @@ class Upgrade extends AdminController */ public function upload() { - $url = $this->sys['upgrade_url'].'?url='.$this->sys['domain'].'&key='.$this->sys['key'].'&ver='.$this->sys_version; + $url = $this->sys['upgrade_url'].'?url='.$this->sys['domain'].'&key='.$this->sys['key'].'&pn='.$this->pn.'&ver='.$this->sys_version; $versions = Api::urlGet($url); Log::channel('update')->info('update:{type} {progress} {msg}',['type'=>'check','progress'=>'0%','msg'=>'===>升级检测开始===>']); //判断服务器状态 diff --git a/config/taoler.php b/config/taoler.php index d74a58a..acf2d9f 100644 --- a/config/taoler.php +++ b/config/taoler.php @@ -4,8 +4,10 @@ // +---------------------------------------------------------------------- return [ + //应用名,此项不可更改 + 'appname' => 'TaoLer', //版本配置 - 'version' => '1.6.10', + 'version' => '1.7.1', //加盐 'salt' => 'taoler', //数据库备份目录