error和success方法的url参数支持传入空字符串

This commit is contained in:
thinkphp
2016-02-15 19:41:20 +08:00
parent b53e4f3ea6
commit eb24c9fdee
2 changed files with 15 additions and 15 deletions

View File

@@ -22,12 +22,12 @@ trait Jump
* 操作错误跳转的快捷方法
* @access public
* @param mixed $msg 提示信息
* @param mixed $url 跳转的URL地址
* @param string $url 跳转的URL地址
* @param mixed $data 返回的数据
* @param mixed $wait 跳转等待时间
* @param integer $wait 跳转等待时间
* @return mixed
*/
public function error($msg = '', $url = '', $data = '', $wait = 3)
public function error($msg = '', $url = null, $data = '', $wait = 3)
{
return Response::error($msg, $data, $url, $wait);
}
@@ -36,12 +36,12 @@ trait Jump
* 操作成功跳转的快捷方法
* @access public
* @param mixed $msg 提示信息
* @param mixed $url 跳转的URL地址
* @param string $url 跳转的URL地址
* @param mixed $data 返回的数据
* @param mixed $wait 跳转等待时间
* @param integer $wait 跳转等待时间
* @return mixed
*/
public function success($msg = '', $url = '', $data = '', $wait = 3)
public function success($msg = '', $url = null, $data = '', $wait = 3)
{
return Response::success($msg, $data, $url, $wait);
}