mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
注释和规范化调整及完善
注释和规范化调整及完善,以及部分代码优化
This commit is contained in:
@@ -36,9 +36,12 @@ class MongoModel extends \Think\Model
|
||||
/**
|
||||
* 利用__call方法实现一些特殊的Model方法
|
||||
* @access public
|
||||
*
|
||||
* @param string $method 方法名称
|
||||
* @param array $args 调用参数
|
||||
* @param array $args 调用参数
|
||||
*
|
||||
* @return mixed
|
||||
* @throws \think\Exception
|
||||
*/
|
||||
public function __call($method, $args)
|
||||
{
|
||||
@@ -54,7 +57,6 @@ class MongoModel extends \Think\Model
|
||||
return $this->where($where)->getField($args[1]);
|
||||
} else {
|
||||
throw new \think\Exception(__CLASS__ . ':' . $method . Lang::get('_METHOD_NOT_EXIST_'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user