注释和规范化调整及完善

注释和规范化调整及完善,以及部分代码优化
This commit is contained in:
yicheng
2015-12-06 01:56:10 +08:00
parent 491e33af8f
commit 47335634e9
37 changed files with 385 additions and 187 deletions

View File

@@ -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;
}
}