You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
59
hyhproject/app/controller/Logmoneys.php
Executable file
59
hyhproject/app/controller/Logmoneys.php
Executable file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
namespace wstmart\app\controller;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 资金流水控制器
|
||||
*/
|
||||
class Logmoneys extends Base{
|
||||
// 前置方法执行列表
|
||||
protected $beforeActionList = [
|
||||
'checkAuth'
|
||||
];
|
||||
/**
|
||||
* 查看用户资金流水
|
||||
*/
|
||||
public function usermoneys(){
|
||||
$userId = (int)session('WST_USER.userId');
|
||||
$rs = model('Users')->getFieldsById($userId,['lockMoney','userMoney','payPwd']);
|
||||
$rs['isSetPayPwd'] = ($rs['payPwd']=='')?0:1;
|
||||
unset($rs['payPwd']);
|
||||
$rs['num'] = count(model('cashConfigs')->listQuery(0,$userId));
|
||||
$this->assign('rs',$rs);
|
||||
return $this->fetch('users/logmoneys/list');
|
||||
}
|
||||
/**
|
||||
* 资金流水
|
||||
*/
|
||||
public function record(){
|
||||
$userId = (int)session('WST_USER.userId');
|
||||
$rs = model('Users')->getFieldsById($userId,['lockMoney','userMoney','payPwd']);
|
||||
$this->assign('rs',$rs);
|
||||
return $this->fetch('users/logmoneys/record');
|
||||
}
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
public function pageQuery(){
|
||||
$userId = (int)session('WST_USER.userId');
|
||||
$data = model('LogMoneys')->pageQuery("",$userId);
|
||||
return jsonReturn("", 1,$data);
|
||||
}
|
||||
/**
|
||||
* 验证支付密码
|
||||
*/
|
||||
public function checkPayPwd(){
|
||||
return model('app/users')->checkPayPwd();
|
||||
}
|
||||
|
||||
/**
|
||||
* 充值[用户]
|
||||
*/
|
||||
public function toRecharge(){
|
||||
$payments = model('common/payments')->recharePayments('2');
|
||||
$this->assign('payments',$payments);
|
||||
//print_r($payments);
|
||||
$chargeItems = model('common/ChargeItems')->queryList();
|
||||
$this->assign('chargeItems',$chargeItems);
|
||||
return $this->fetch('users/recharge/recharge');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user