You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php
 | |
| namespace wstmart\mobile\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 WSTReturn("", 1,$data);
 | |
| 	}
 | |
| 	/**
 | |
| 	* 验证支付密码
 | |
| 	*/
 | |
| 	public function checkPayPwd(){
 | |
| 		return model('mobile/users')->checkPayPwd();
 | |
| 	}
 | |
| 
 | |
| 	/**
 | |
|      * 充值[用户]
 | |
|      */
 | |
|     public function toRecharge(){
 | |
|     	$userId = (int)session('WST_USER.userId');
 | |
|     	$rs = model('Users')->getFieldsById($userId,'userMoney');
 | |
|     	$this->assign('rs',$rs);
 | |
|     	$payments = model('common/payments')->recharePayments('2');
 | |
|     	$this->assign('payments',$payments);
 | |
|     	$chargeItems = model('common/ChargeItems')->queryList();
 | |
|     	$this->assign('chargeItems',$chargeItems);
 | |
|     	return $this->fetch('users/recharge/recharge');
 | |
|     }
 | |
| }
 |