提交 c8627232 编写于 作者: D devil_gong

细节优化

上级 a823fbcd
......@@ -67,7 +67,7 @@ class Excel
$this->data = isset($params['data']) ? $params['data'] : [];
// 出错跳转地址
$this->jump_url = empty($params['jump_url']) ? $_SERVER['HTTP_REFERER'] : $params['jump_url'];
$this->jump_url = empty($params['jump_url']) ? (empty($_SERVER['HTTP_REFERER']) ? __MY_URL__ : $_SERVER['HTTP_REFERER']) : $params['jump_url'];
// 错误提示信息
$this->msg = empty($params['msg']) ? 'title or data cannot be empty!' : $params['msg'];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册