Commit ceb43869 authored by hujun's avatar hujun

add

parent e36383fc
......@@ -108,4 +108,19 @@ class GImageDepot extends Model
//dump($this->getLastSql());
return $result;
}
/**
* @param string $field
* @param $params
* @return array|false|\PDOStatement|string|Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getInfo($field = 'id,img_name', $params) {
return Db::table($this->table)
->field($field)
->where($params)
->find($params);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment