You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
app
common
home
home2
mobile2
wechat2
behavior
common
conf
controller
Areas.php
Base.php
Brands.php
Carts.php
Cashconfigs.php
Cashdraws.php
Error.php
Favorites.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsconsult.php
Index.php
Invoices.php
Logmoneys.php
Messages.php
News.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Shops.php
Switchs.php
Unionpays.php
Useraddress.php
Users.php
Userscores.php
Wallets.php
Weixin.php
Weixinpays.php
model
validate
view
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.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
qlg.tar.gz
reg.lock
robots.txt
39 lines
990 B
PHP
Executable File
39 lines
990 B
PHP
Executable File
<?php
|
|
namespace wstmart\wechat\controller;
|
|
use wstmart\common\model\UserScores as MUserscores;
|
|
/**
|
|
* ============================================================================
|
|
* 地区控制器
|
|
*/
|
|
class Userscores extends Base{
|
|
// 前置方法执行列表
|
|
protected $beforeActionList = [
|
|
'checkAuth'
|
|
];
|
|
/**
|
|
* 查看
|
|
*/
|
|
public function index(){
|
|
$rs = model('Users')->getFieldsById((int)session('WST_USER.userId'),['userScore','userTotalScore']);
|
|
$this->assign('object',$rs);
|
|
return $this->fetch('users/userscores/list');
|
|
}
|
|
/**
|
|
* 获取数据
|
|
*/
|
|
public function pageQuery(){
|
|
$userId = (int)session('WST_USER.userId');
|
|
$data = model('UserScores')->pageQuery($userId);
|
|
return WSTReturn("", 1,$data);
|
|
}
|
|
/**
|
|
* 签到积分
|
|
*/
|
|
public function signScore(){
|
|
$m = new MUserscores();
|
|
$userId = (int)session('WST_USER.userId');
|
|
$rs = $m->signScore($userId);
|
|
return $rs;
|
|
}
|
|
}
|