* Correct the upgradeTest file name.
This commit is contained in:
@@ -9388,6 +9388,7 @@ class upgradeModel extends model
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否包含一致性错误。
|
||||
* Check has consistency error or not.
|
||||
*
|
||||
* @access public
|
||||
|
||||
@@ -28,4 +28,18 @@ class upgradeTest
|
||||
}
|
||||
return trim($return, ';');
|
||||
}
|
||||
|
||||
/**
|
||||
* __call魔术方法,如果比较简单的方法可以直接调用,不需要单独写方法。
|
||||
* __call magic method, if the method is simple, you can call it directly, no need to write a method.
|
||||
*
|
||||
* @param string $method
|
||||
* @param array $args
|
||||
* @access public
|
||||
* @return mixed
|
||||
*/
|
||||
public function __call(string $method, array $args): mixed
|
||||
{
|
||||
return $this->objectModel->$method($args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
class upgradeTest
|
||||
{
|
||||
/* upgrade模型实例化变量。 */
|
||||
/* upgrade model instantiation variable. */
|
||||
private $objectModel;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
global $tester;
|
||||
$this->objectModel = $tester->loadModel('upgrade');
|
||||
}
|
||||
|
||||
/**
|
||||
* __call魔术方法,如果比较简单的方法可以直接调用,不需要单独写方法。
|
||||
* __call magic method, if the method is simple, you can call it directly, no need to write a method.
|
||||
*
|
||||
* @param string $method
|
||||
* @param array $args
|
||||
* @access public
|
||||
* @return mixed
|
||||
*/
|
||||
public function __call(string $method, array $args): mixed
|
||||
{
|
||||
return $this->objectModel->$method($args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user