diff --git a/app/admin/controller/Upgrade.php b/app/admin/controller/Upgrade.php index 5396e00..17b63d0 100644 --- a/app/admin/controller/Upgrade.php +++ b/app/admin/controller/Upgrade.php @@ -226,8 +226,11 @@ class Upgrade extends AdminController //升级执行mysql操作 if(file_exists($upSql)) { - $result = $this->db_update($upSql); - return $result; + $sqlRes = $this->db_update($upSql); + $upDate = $sqlRes->getData(); + if($upDate['code'] == -1){ + return json(['code'=>-1,'msg'=>$upDate['msg']]); + } }