You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
behavior
common
conf
controller
Accreds.php
Addons.php
Adgoods.php
Adpositions.php
Ads.php
Areas.php
Articlecats.php
Articles.php
Attributes.php
Banks.php
Base.php
Brands.php
Carts.php
Cashdraws.php
Chargeitems.php
Cronjobs.php
Datacats.php
Datas.php
Ectday.php
Ectdeal.php
Ecttarget.php
Express.php
Friendlinks.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsclassify.php
Goodsconsult.php
Homemenus.php
Hooks.php
Images.php
Index.php
Informs.php
LogSysData.php
Logmoneys.php
Logoperates.php
Logsms.php
Logstafflogins.php
Member.php
Menus.php
Messages.php
Mobilebtns.php
Navs.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Payments.php
Platform.php
Privileges.php
Recommends.php
Reports.php
Roles.php
Settlements.php
Shops.php
Speccats.php
Staffs.php
Styles.php
Sysconfigs.php
Templatemsgs.php
TradeRule.php
Userranks.php
Users.php
Userscores.php
Wsysconfigs.php
Wxmenus.php
Wxpassivereplys.php
Wxtemplatemsgs.php
Wxusers.php
model
validate
view
app
common
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5436787D.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
254 lines
5.9 KiB
PHP
Executable File
254 lines
5.9 KiB
PHP
Executable File
<?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);
|
|
}
|
|
}
|