内核更新

This commit is contained in:
2016-09-14 13:39:11 +08:00
parent d639c7d5f5
commit 3a6802216e
9 changed files with 136 additions and 43 deletions
+18
View File
@@ -42,6 +42,24 @@ class Redirect extends Response
return;
}
/**
* 重定向传值(通过Session)
* @access protected
* @param string|array $name 变量名或者数组
* @param mixed $value 值
* @return $this
*/
public function with($name, $value = null)
{
if (is_array($name)) {
foreach ($name as $key => $val) {
Session::set($key, $val);
}
} else {
Session::set($name, $value);
}
}
/**
* 获取跳转地址
* @return string