mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正
This commit is contained in:
@@ -208,8 +208,8 @@ class Validate
|
||||
*/
|
||||
public function scene($name, $fields = null)
|
||||
{
|
||||
if(is_array($name){
|
||||
$this->scene = array_merge($this->scene,$name);
|
||||
if (is_array($name)) {
|
||||
$this->scene = array_merge($this->scene, $name);
|
||||
}if (is_null($fields)) {
|
||||
// 设置当前场景
|
||||
$this->currentScene = $name;
|
||||
|
||||
Reference in New Issue
Block a user