Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP8 Decoder for ionCube Encoder)
- *
- * @ Version : 8.3.0.1
- * @ Author : DeZender
- * @ Release on : 24.02.2026
- * @ Official site : http://DeZender.Net
- *
- */
- namespace plugin\adm\app\controller;
- use plugin\adm\app\model\Account;
- use plugin\adm\app\model\Accountcate;
- use plugin\adm\app\model\Accountzc;
- use plugin\adm\app\model\Admin;
- use plugin\adm\app\model\Ckfl;
- use plugin\adm\app\model\Cklist;
- use plugin\adm\app\model\Crklx;
- use plugin\adm\app\model\Dplist;
- use plugin\adm\app\model\Dpmini;
- use plugin\adm\app\model\Geowzfbdd;
- use plugin\adm\app\model\Geowzfbmt;
- use plugin\adm\app\model\Geowzfbsk;
- use plugin\adm\app\model\Goodscate;
- use plugin\adm\app\model\Goodsgroup;
- use plugin\adm\app\model\Goodsgroupsx;
- use plugin\adm\app\model\Goodsunit;
- use plugin\adm\app\model\Gyscate;
- use plugin\adm\app\model\Kharea;
- use plugin\adm\app\model\Khcate;
- use plugin\adm\app\model\Khfund;
- use plugin\adm\app\model\Khjslx;
- use plugin\adm\app\model\Khlabel;
- use plugin\adm\app\model\Khlist;
- use plugin\adm\app\model\Member;
- use plugin\adm\app\model\Qdzh;
- use plugin\adm\app\model\Sklist;
- use plugin\adm\app\model\Sklx;
- use plugin\adm\app\model\Szlx;
- use plugin\adm\app\model\User;
- use plugin\adm\app\model\Wxopenset;
- use support\Request;
- use support\think\Db;
- use support\View;
- class AccountController extends BaseController
- {
- public function __construct()
- {
- parent::__construct();
- $session = request()->session();
- $user = $session->get('usermsg');
- if (!$user) {
- throw new BusinessException('请重新登录', 3000);
- }
- }
- /**
- * 账号管理
- * @param Request $request
- */
- public function index(Request $request)
- {
- $clist = Accountcate::where([[
- 'status',
- '=',
- 1
- ], [
- 'recycle',
- '=',
- 0
- ]])->order(['weight' => 'desc', 'id' => 'asc'])->select()->toArray();
- if (empty($clist)) {
- $clist = [];
- }
- View::assign('clist', $clist);
- $qdlist = Qdzh::where([[
- 'status',
- '=',
- 1
- ], [
- 'recycle',
- '=',
- 0
- ]])->order(['weight' => 'desc', 'id' => 'asc'])->select()->toArray();
- if (empty($qdlist)) {
- $qdlist = [];
- }
- View::assign('qdlist', $qdlist);
- $free = 1;
- View::assign('free', $free);
- return view('account/index');
- }
- /**
- * 账号列表
- * @param Request $request
- */
- public function select(Request $request)
- {
- $data = $request->post();
- if (!empty($data['name'])) {
- $kwd = $data['name'];
- $wheres[] = [
- 'name',
- 'like',
- '%' . $kwd . '%'
- ];
- }
- if (!empty($data['cateid'])) {
- $wheres[] = [
- 'cateid',
- '=',
- $data['cateid']
- ];
- }
- if (!empty($data['qdid'])) {
- $wheres[] = [
- 'qdid',
- '=',
- $data['qdid']
- ];
- }
- if (!empty($data['type'])) {
- $wheres[] = [
- 'type',
- '=',
- ($data['type'] - 1)
- ];
- }
- if (!empty($data['uname'])) {
- $kwd = $data['uname'];
- $wheres[] = [
- 'uname',
- 'like',
- '%' . $kwd . '%'
- ];
- }
- if (!empty($data['phone'])) {
- $kwd = $data['phone'];
- $wheres[] = [
- 'phone',
- 'like',
- '%' . $kwd . '%'
- ];
- }
- if (!empty($data['lyfs'])) {
- $wheres[] = [
- 'lyfs',
- '=',
- ($data['lyfs'] - 1)
- ];
- }
- if ((!empty($data['starttime'])) && (!empty($data['endtime']))) {
- $stime = strtotime($data['starttime']);
- $etime = strtotime($data['endtime']);
- $wheres[] = [
- 'addtime',
- 'between',
- $stime . ',' . $etime
- ];
- }
- $wheres[] = [
- 'recycle',
- '=',
- 0
- ];
- $list = Account::with(['accountcate', 'qdzh'])->where($wheres)->order(['id' => 'desc'])->paginate(['list_rows' => $data['limit'], 'page' => $data['page']]);
- $totals = $list->total();
- $list = $list->toArray();
- ...........................................................
- ................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment