3.2.3 - 严重 - 未处理
Log类的比较严重吧在直接
/Think/Log::write()
方法时,没有通过实例化
95行:self::$storage实例化没有传入log_path
判断is_dir时会不存在并且文件不会创建成功,以至于log写入不了
解决办法(92行):
if(!self::$storage){
$type = $type?:C('LOG_TYPE');
$class = 'Think\\Log\\Driver\\'. ucwords($type);
$config['log_path'] = C('LOG_PATH');
self::$storage = new $class($config);
}RelationModel 144行与280行当用户自定义relation前缀时D方法出来的model会造成table不存在
解决办法(RealtionModel 144与280行):
// 获取关联模型对象
$model = M($mappingClass, $this->tablePrefix); 