Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
1. JS全局变量引入错误
Browse files Browse the repository at this point in the history
2. 异常接管
  • Loading branch information
yuan1994 committed Dec 10, 2016
1 parent 20fddc1 commit 4eea7a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion application/admin/view/template/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<!--[if IE 6]>
<script type="text/javascript" src="__LIB__/DD_belatedPNG_0.0.8a-min.js"></script>
<script>DD_belatedPNG.fix('*');</script>
{include file='admin@template/javascript_vars' /}
<![endif]-->
{include file='admin@template/javascript_vars' /}
</head>
<body>
{block name="nav"}
Expand Down
8 changes: 4 additions & 4 deletions extend/TpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public function render(\Exception $e)
http_response_code($statusCode);
}
//可以在此交由系统处理
// if (Request::instance()->isAjax()) {
// $error_code = $this->getCode($e) ?: 1;
// return ajax_return_adv_error($this->getMessage($e), $error_code);
// }
if (Request::instance()->isAjax()) {
$error_code = $this->getCode($e) ?: 1;
return ajax_return_adv_error($this->getMessage($e), $error_code);
}
return parent::render($e);
}

Expand Down

0 comments on commit 4eea7a5

Please sign in to comment.