改进session函数支持判断是否赋值操作 修正response类success方法

This commit is contained in:
thinkphp
2016-03-12 18:07:59 +08:00
parent def7b71130
commit 2955e89f3d
2 changed files with 6 additions and 6 deletions

View File

@@ -174,7 +174,7 @@ class Response
'code' => $code,
'msg' => $msg,
'data' => $data,
'url' => is_null($url) ? $_SERVER["HTTP_REFERER"] : $url,
'url' => is_null($url) && isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $url,
'wait' => $wait,
];