diff --git a/app/chengji/controller/Index.php b/app/chengji/controller/Index.php index aee5c5bf..35104168 100644 --- a/app/chengji/controller/Index.php +++ b/app/chengji/controller/Index.php @@ -472,10 +472,8 @@ class Index extends BaseController if($data){ $this->success($msg = '删除成功', $url = '/chengji/index/deletecjs/'.$src['kaoshi'], $data = '', $wait = 3, $header = []); - $this->error('成绩删除失败'); - $this->success('成绩删除成功','/chengji/index/deletecjs/'.$src['kaoshi']); }else{ - $this->error('成绩删除失败'); + $this->error($msg = '删除失败', $url = '/chengji/index/deletecjs/'.$src['kaoshi'], $wait = 3); } // 根据更新结果设置返回提示信息 diff --git a/config/jump.php b/config/jump.php index 03b4ef57..bf46f371 100644 --- a/config/jump.php +++ b/config/jump.php @@ -7,8 +7,8 @@ */ return[ // 默认跳转页面对应的模板文件 - // 'dispatch_success_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', - // 'dispatch_error_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', - 'dispatch_success_tmpl' => app()->getRootPath().'/public/error/success.tpl', - 'dispatch_error_tmpl' => app()->getRootPath().'/public/error/error.tpl', + 'dispatch_success_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', + 'dispatch_error_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', + // 'dispatch_success_tmpl' => app()->getRootPath().'/public/error/success.tpl', + // 'dispatch_error_tmpl' => app()->getRootPath().'/public/error/error.tpl', ]; diff --git a/public/error/error.tpl b/public/error/error.tpl deleted file mode 100644 index 4ecac4fa..00000000 --- a/public/error/error.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - -
- -,啥都看不到了…
- - 系统提示 -
-{$msg}
- -