This commit is contained in:
thinkphp
2016-03-21 13:52:38 +08:00
parent 2cfcabde44
commit 8e9fc3d463

View File

@@ -208,8 +208,8 @@ class Validate
*/ */
public function scene($name, $fields = null) public function scene($name, $fields = null)
{ {
if(is_array($name){ if (is_array($name)) {
$this->scene = array_merge($this->scene,$name); $this->scene = array_merge($this->scene, $name);
}if (is_null($fields)) { }if (is_null($fields)) {
// 设置当前场景 // 设置当前场景
$this->currentScene = $name; $this->currentScene = $name;