[0] Exception in Query.php line 96
method not exist:think\db\Query->save
$field = Loader::parseName(substr($method, 5));
$where[$field] = $args[0];
return $this->where($where)->find();
} elseif (strtolower(substr($method, 0, 10)) == 'getfieldby') {
// 根据某个字段获取记录的某个值
$name = Loader::parseName(substr($method, 10));
$where[$name] = $args[0];
return $this->where($where)->value($args[1]);
} else {
// 这是第96行
throw new Exception('method not exist:' . __CLASS__ . '->' . $method);
}
}
最佳答案
