62 lines
2.0 KiB
PHP
62 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* SAAS应用系统 --- 十年开发经验汇集巨献!
|
|
* ==========================================================
|
|
* Copy right 2020-2050 成都众联思索科技有限公司,保留所有权利。
|
|
* ----------------------------------------------------------
|
|
* 官方网址: https://www.zoomtk.com
|
|
* 这不是自由软件!未经允许不得用于商业目或程序代码摘取及修改。
|
|
* 任何企业和个人未经允许对程序代码以任何形式任何目的再发布传播。
|
|
* 唯一发布渠道www.zoomtk.com;非官方渠道统一视为侵权行为。
|
|
* ==========================================================
|
|
*/
|
|
namespace addon\futures\shop\controller;
|
|
use app\shop\controller\BaseShop;
|
|
use addon\futures\model\User as userModel;
|
|
error_reporting(E_ALL ^ E_NOTICE);
|
|
class User extends BaseShop{
|
|
/**
|
|
* Common: 进入首页
|
|
* Author: wu-hui
|
|
* Time: 2023/02/23 9:33
|
|
* @return array|mixed
|
|
* @throws \think\db\exception\DbException
|
|
*/
|
|
public function index(){
|
|
if(request()->isAjax()) return (new userModel($this->site_id))->getList();
|
|
|
|
$this->forthMenu();
|
|
return $this->fetch('user/index');
|
|
}
|
|
/**
|
|
* Common: 特殊身份变更
|
|
* Author: wu-hui
|
|
* Time: 2023/02/23 9:33
|
|
* @return array
|
|
*/
|
|
public function changeSpecial(){
|
|
|
|
return (new userModel($this->site_id))->changeSpecial();
|
|
}
|
|
/**
|
|
* Common: 商品赠送
|
|
* Author: wu-hui
|
|
* Time: 2023/02/23 14:01
|
|
* @return array|mixed
|
|
*/
|
|
public function sendGoods(){
|
|
if(request()->isAjax()) return (new userModel($this->site_id))->sendGoods();
|
|
|
|
$this->assign('member_id',input('member_id',0));
|
|
return $this->fetch('user/send_goods');
|
|
}
|
|
// 违规记录
|
|
public function violationRecords(){
|
|
if(request()->isAjax()) return (new userModel($this->site_id))->violationRecords();
|
|
|
|
$this->assign('member_id',input('member_id',0));
|
|
return $this->fetch('user/record');
|
|
}
|
|
|
|
|
|
} |