You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
253
hyhproject/admin/controller/Users.php
Executable file
253
hyhproject/admin/controller/Users.php
Executable file
@ -0,0 +1,253 @@
|
||||
<?php
|
||||
namespace wstmart\admin\controller;
|
||||
use wstmart\admin\model\Users as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 会员控制器
|
||||
*/
|
||||
class Users extends Base{
|
||||
/**
|
||||
* 个体认证审核
|
||||
*/
|
||||
public function personalReview(){
|
||||
return $this->fetch("personal_review_list");
|
||||
}
|
||||
/**
|
||||
* 个体认证审核列表
|
||||
*/
|
||||
public function getPersonalReview(){
|
||||
$m = new M();
|
||||
return WSTGrid($m->getReview(1));
|
||||
}
|
||||
|
||||
/**
|
||||
* 个体认证操作
|
||||
*/
|
||||
public function personalAction(){
|
||||
$m = new M();
|
||||
return $m->authAction(1);
|
||||
}
|
||||
/**
|
||||
* 个体认证审核
|
||||
*/
|
||||
public function companyReview(){
|
||||
return $this->fetch("company_review_list");
|
||||
}
|
||||
/**
|
||||
* 个体认证审核列表
|
||||
*/
|
||||
public function getCompanyReview(){
|
||||
$m = new M();
|
||||
return WSTGrid($m->getReview(2));
|
||||
}
|
||||
|
||||
/**
|
||||
* 个体认证操作
|
||||
*/
|
||||
public function companyAction(){
|
||||
$m = new M();
|
||||
return $m->authAction(2);
|
||||
}
|
||||
/**
|
||||
* 获取亲人认证/报备列表
|
||||
*/
|
||||
public function authFamilyList(){
|
||||
$m = Model('AuthFamily');
|
||||
if(1 == (int)input( 'post.isPersonal')){//亲人认证
|
||||
$m->setTable('auth_family_personal');
|
||||
}
|
||||
$where['userId'] = (int)input( 'post.userId');
|
||||
$data = $m->getList($where,'*');
|
||||
return WSTReturn('',1,$data);
|
||||
}
|
||||
/**
|
||||
* 获取亲人认证/报备列表
|
||||
*/
|
||||
public function familyList(){
|
||||
$m = Model('AuthFamily');
|
||||
if(1 == (int)input( 'post.isPersonal')){//亲人认证
|
||||
$m->setTable('auth_family_personal');
|
||||
}
|
||||
$where['userId'] = (int)input( 'post.userId');
|
||||
$data = $m->getList($where,'*');
|
||||
return WSTReturn('',1,$data);
|
||||
}
|
||||
/**
|
||||
* 获取合作人列表
|
||||
*/
|
||||
public function authCompanyList(){
|
||||
$m = Model('Table');
|
||||
$m->setTable('auth_company_partner');
|
||||
$where['userId'] = (int)input( 'post.userId');
|
||||
$where['dataFlag'] = 1;
|
||||
$data = $m->getList($where,'*');
|
||||
return WSTReturn('',1,$data);
|
||||
}
|
||||
/**
|
||||
* 获取银行卡
|
||||
*/
|
||||
public function authCompanyBank(){
|
||||
$m = Model('CompanyBank');
|
||||
$where['userId'] = (int)input( 'post.userId');
|
||||
$data = $m->getList($where,'*');
|
||||
return WSTReturn('',1,$data);
|
||||
}
|
||||
public function index(){
|
||||
return $this->fetch("list");
|
||||
}
|
||||
/**
|
||||
* 申请列表
|
||||
*/
|
||||
public function userUpdateList(){
|
||||
return $this->fetch("update_list");
|
||||
}
|
||||
/**
|
||||
* 获取申请列表
|
||||
*/
|
||||
public function getUserUpdateList(){
|
||||
$m = new M();
|
||||
$data = $m->getUserUpdateList();
|
||||
return WSTGrid($data);
|
||||
}
|
||||
/**
|
||||
* 申请升级操作
|
||||
*/
|
||||
public function setUserUpdate(){
|
||||
$m = new M();
|
||||
$data = $m->setUserUpdate();
|
||||
exit(json_encode($data));
|
||||
}
|
||||
/**
|
||||
* 查看会员定返数据
|
||||
*/
|
||||
public function viewUserDayData(){
|
||||
return $this->fetch("user_day_list");
|
||||
}
|
||||
/**
|
||||
* 获取申请列表
|
||||
*/
|
||||
public function getViewUserDayData(){
|
||||
$m = new M();
|
||||
$data = $m->getViewUserDayData();
|
||||
return WSTGrid($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取分页
|
||||
*/
|
||||
public function pageQuery(){
|
||||
$m = new M();
|
||||
return WSTGrid($m->pageQuery());
|
||||
}
|
||||
/**
|
||||
* 跳去编辑页面
|
||||
*/
|
||||
public function toEdit(){
|
||||
$m = new M();
|
||||
$data = $this->get();
|
||||
$assign = ['data'=>$data];
|
||||
return $this->fetch("edit",$assign);
|
||||
}
|
||||
/**
|
||||
* 跳去充值页面
|
||||
*/
|
||||
public function toRecharge(){
|
||||
$m = new M();
|
||||
$data = $this->get();
|
||||
$assign = ['data'=>$data];
|
||||
return $this->fetch("recharge",$assign);
|
||||
}
|
||||
/*
|
||||
* 获取数据
|
||||
*/
|
||||
public function get(){
|
||||
$m = new M();
|
||||
return $m->getById((int)Input("id"));
|
||||
}
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
public function add(){
|
||||
$m = new M();
|
||||
return $m->add();
|
||||
}
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
public function edit(){
|
||||
$m = new M();
|
||||
return $m->edit();
|
||||
}
|
||||
/**
|
||||
* 充值
|
||||
*/
|
||||
public function recharge(){
|
||||
$m = new M();
|
||||
return $m->recharge();
|
||||
}
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
public function del(){
|
||||
$m = new M();
|
||||
return $m->del();
|
||||
}
|
||||
public function getUserByKey(){
|
||||
$m = new M();
|
||||
return $m->getUserByKey();
|
||||
}
|
||||
/**********************************************************************************************
|
||||
* 账号管理 *
|
||||
**********************************************************************************************/
|
||||
/**
|
||||
* 账号管理页面
|
||||
*/
|
||||
public function accountIndex(){
|
||||
return $this->fetch("account_list");
|
||||
}
|
||||
/**
|
||||
* 判断账号是否存在
|
||||
*/
|
||||
public function checkLoginKey(){
|
||||
$rs = WSTCheckLoginKey(Input('post.loginName'),Input('post.userId/d',0));
|
||||
if($rs['status']==1){
|
||||
return ['ok'=>$rs['msg']];
|
||||
}else{
|
||||
return ['error'=>$rs['msg']];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
public function changeUserStatus($id, $status){
|
||||
$m = new M();
|
||||
return $m->changeUserStatus($id, $status);
|
||||
}
|
||||
public function editAccount(){
|
||||
$m = new M();
|
||||
return $m->edit();
|
||||
}
|
||||
/**
|
||||
* 获取所有用户id
|
||||
*/
|
||||
public function getAllUserId()
|
||||
{
|
||||
$m = new M();
|
||||
return $m->getAllUserId();
|
||||
}
|
||||
/**
|
||||
* 重置支付密码
|
||||
*/
|
||||
public function resetPayPwd(){
|
||||
$m = new M();
|
||||
return $m->resetPayPwd();
|
||||
}
|
||||
/**
|
||||
* 导出订单
|
||||
*/
|
||||
public function toExport(){
|
||||
$m = new M();
|
||||
$rs = $m->toExport();
|
||||
$this->assign('rs',$rs);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user