mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
修正
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user