Commit 23461ba0 authored by hujun's avatar hujun

录音下载增加数量限制

parent ae4ae5bc
...@@ -15,19 +15,21 @@ class AliYunSecretReport extends BaseModel ...@@ -15,19 +15,21 @@ class AliYunSecretReport extends BaseModel
protected $table = 'aliYun_secret_report'; protected $table = 'aliYun_secret_report';
/** /**
* 获取所有的通过回调记录 * 获取指定数量的通过回调记录
* *
* @param $fields * @param $fields
* @param $where * @param $where
* @param int $limit
* @return false|\PDOStatement|string|\think\Collection * @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function secretReportAll($fields, $where) public function secretReportAll($fields, $where, $limit = 1000)
{ {
return $this->field($fields) return $this->field($fields)
->where($where) ->where($where)
->limit($limit)
->select(); ->select();
} }
......
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