| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\admin\controller;
- use app\BaseController;
- use app\common\model\CustomerZueCoinModel;
- use think\App;
- use think\facade\View;
- class ZueCoin extends BaseController
- {
- private $model;
- public function __construct(App $app)
- {
- $this->model = new CustomerZueCoinModel();
- parent::__construct($app);
- }
- public function index() {
- $params = $this->request->param();
- $format_params = [
- 'customer' => format_string($params['customer'] ?? null),
- ];
- $list = $this->model->findByPaginate($format_params);
- View::assign([
- 'list' => $list,
- 'params' => $format_params,
- ]);
- return view();
- }
- public function select($id = null) {
- View::assign('value',$this->model->findById($id ?? -1));
- return view();
- }
- }
|