You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
app
common
conf
controller
Alipays.php
Appport.php
Areas.php
Articles.php
Auth.php
Base.php
Brands.php
Carts.php
Cashconfigs.php
Cashdraws.php
Chain3.php
Chain3base.php
Ect.php
Ectwallets.php
Error.php
Favorites.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsconsult.php
Index.php
Invoices.php
Juhui.php
Logmoneys.php
Messages.php
News.php
Note.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Position.php
Qlgpay.php
Shoporders.php
Shopping.php
Shops.php
Switchs.php
Tag.php
Tags.php
Tmp.php
TradeRule.php
Unionpays.php
UserLevel.php
Useraddress.php
Users.php
Userscores.php
Uservouchers.php
Wallets.php
Weixinpays.php
model
validate
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_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
60 lines
1.7 KiB
PHP
Executable File
60 lines
1.7 KiB
PHP
Executable File
<?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');
|
|
}
|
|
}
|