Files
liche/api/controllers/wxapp/licheb/Fine.php
T
2021-11-01 14:22:57 +08:00

44 lines
1.1 KiB
PHP

<?php
defined('WXAPP_APP') OR exit('No direct script access allowed');
/**
* Created by Vim
* User: lcc
* Date: 2021/10/29
* Time: 15:34
*/
require_once APPPATH.'controllers/wxapp/Wxapp.php';
class Fine extends Wxapp{
function __construct($inputs, $app_key){
parent::__construct($inputs, $app_key);
$this->login_white = array();//登录白名单
$this->check_status = array();//用户状态校验
$this->check_mobile = array();//需要手机号
$this->check_headimg =array();//授权微信信息
$this->load->model('receiver/receiver_fine_model');
}
protected function get(){
$page = $this->input_param('page');
$size = $this->input_param('size');
!$page && $page = 1;
!$size && $size = 20;
$where = [
'status' => 1
];
$count = $this->receiver_fine_model->count($where);
$list = $this->receiver_fine_model->select($where,'id desc',$page,$size,'id,title,price');
$data = [
'list' => $list,
'total' => $count
];
return $data;
}
}