['paid', 'pay_time'], ]; } /** * @notes 获取充值记录列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author admin * @date 2024/06/06 14:29 */ public function lists(): array { return UserRecharge::where($this->searchWhere) ->field(['id', 'uid', 'order_id', 'price', 'recharge_type', 'paid', 'pay_time']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取充值记录数量 * @return int * @author admin * @date 2024/06/06 14:29 */ public function count(): int { return UserRecharge::where($this->searchWhere)->count(); } }