diff --git a/app/admin/controller/Upgrade.php b/app/admin/controller/Upgrade.php index 1dd6e4e..43b6a2b 100644 --- a/app/admin/controller/Upgrade.php +++ b/app/admin/controller/Upgrade.php @@ -3,11 +3,11 @@ * 升级包规定的目录结构 * xxx_版本号.zip(如:xxx_1.0.0.zip) * | - * |————mysql + * |————runtime * | | - * | |___mysql_update.sql(更新脚本) //create table test(id init(11)); create table test2(id init(11)); + * | |___update.sql(更新脚本) //create table test(id init(11)); create table test2(id init(11)); * - * | |___mysql_rockback.sql(回滚脚本) //drop table test; //drop table test2; + * | |___rockback.sql(回滚脚本) //drop table test; //drop table test2; * | * |____php * @@ -273,7 +273,7 @@ class Upgrade extends AdminController } //升级sql操作 - $upSql = $zipPath.'runtime/mysql_update.sql'; + $upSql = $zipPath.'runtime/update.sql'; if(file_exists($upSql)) { $sqlRes = $this->db_update($upSql); diff --git a/app/index/controller/Error.php b/app/index/controller/Error.php index cb2d0fb..56486fe 100644 --- a/app/index/controller/Error.php +++ b/app/index/controller/Error.php @@ -2,11 +2,13 @@ namespace app\index\controller; use think\facade\View; +use app\common\controller\BaseController; -class Error +class Error extends BaseController { public function __call($method, $args) { - return View::fetch('../view/404'); + View::assign('jspage',''); + return View::fetch('../../404'); } } \ No newline at end of file diff --git a/app/index/route/route.php b/app/index/route/route.php index ef4d7d8..d61dfdb 100644 --- a/app/index/route/route.php +++ b/app/index/route/route.php @@ -19,8 +19,8 @@ Route::group(function () { 'ename' => '\w+', 'page' => '\d+', ]); - Route::rule('add','article/add'); - Route::rule('edit/[:id]','article/edit'); + Route::rule('add','Article/add'); + Route::rule('edit/[:id]','Article/edit'); //Route::rule('del/:id','article/delete'); }); Route::group(function () { diff --git a/config/app.php b/config/app.php index e2ea10b..c0953dd 100644 --- a/config/app.php +++ b/config/app.php @@ -22,7 +22,8 @@ return [ // 域名绑定(自动多应用模式有效) 'domain_bind' => [ //'www' => 'index', - //'admin' => 'admin' + //'adm' => 'admin', + //'api' => 'api' ], // 禁止URL访问的应用列表(自动多应用模式有效) 'deny_app_list' => [], @@ -33,10 +34,10 @@ return [ // 错误显示信息,非调试模式有效 'error_message' => '页面错误!请稍后再试~', // 显示错误信息 - 'show_error_msg' => false, + 'show_error_msg' => true, //异常页面模板 'http_exception_template' => [ - 404 => '../view/404.html', - 500 => '../view/404.html' + 404 => '404.html', + 500 => '404.html' ] ]; diff --git a/config/taoler.php b/config/taoler.php index 05602d7..0b08acd 100644 --- a/config/taoler.php +++ b/config/taoler.php @@ -7,7 +7,7 @@ return [ //应用名,此项不可更改 'appname' => 'TaoLer', //版本配置 - 'version' => '1.8.2', + 'version' => '1.8.3', //加盐 'salt' => 'taoler', //数据库备份目录 @@ -17,9 +17,9 @@ return [ 'email_notice' => 0, 'cate_show' => 0, 'area_show' => 0, - 'regist_check' => 0, - 'posts_check' => 0, - 'commnets_check' => 0, + 'regist_check' => 1, + 'posts_check' => 1, + 'commnets_check' => 1, ] diff --git a/config/view.php b/config/view.php index 2caf977..8832391 100644 --- a/config/view.php +++ b/config/view.php @@ -16,7 +16,7 @@ return [ // 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法 'auto_rule' => 1, // 模板目录名 - 'view_dir_name' => 'view/'.$template, + 'view_dir_name' => 'view\\'.$template, // 模板后缀 'view_suffix' => 'html', // 模板文件名分隔符 diff --git a/view/404.html b/view/404.html index aafec2c..9ea13b2 100644 --- a/view/404.html +++ b/view/404.html @@ -9,7 +9,7 @@
@@ -17,7 +17,7 @@ {block name="script"} - -{/block} \ No newline at end of file diff --git a/view/view/taoler/index/article/detail.html b/view/view/taoler/index/article/detail.html deleted file mode 100644 index 4cd03f1..0000000 --- a/view/view/taoler/index/article/detail.html +++ /dev/null @@ -1,335 +0,0 @@ -{extend name="public/base" /} - -{block name="title"}{$article.title}-{$sysInfo.webname}{/block} -{block name="keywords"}{$article.title},{$article.tags}{/block} -{block name="description"}{$article.title},{:getArtContent($article.content)}{/block} -{block name="link"}{/block} -{block name="column"} {/block} -{block name="content"} -本帖已设置禁止回复- {/if} -
建议尺寸168*168,支持jpg、png、gif,最大不能超过50KB
- -