You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
app
common
conf
controller
model
AppPort.php
Articles.php
Base.php
Carts.php
Chain3.php
Chain3base.php
Ect.php
EctElevenPay.php
Favorites.php
Goods.php
GoodsAppraises.php
GoodsCats.php
Index.php
Messages.php
Orders.php
Payments.php
Shops.php
Tags.php
Users - ╕▒▒╛.php
Users.php
validate
common
home
home2
mobile2
wechat2
.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
reg.lock
robots.txt
49 lines
1.1 KiB
PHP
Executable File
49 lines
1.1 KiB
PHP
Executable File
<?php
|
|
namespace wstmart\app\model;
|
|
use wstmart\common\model\Users as CUsers;
|
|
use Think\Db;
|
|
|
|
/**
|
|
* ============================================================================
|
|
* 用户类
|
|
*/
|
|
class Users extends CUsers{
|
|
/**
|
|
* 验证用户支付密码
|
|
*/
|
|
function checkPayPwd(){
|
|
$payPwd = input('payPwd');
|
|
$decrypt_data = WSTRSA($payPwd);
|
|
if($decrypt_data['status']==1){
|
|
$payPwd = $decrypt_data['data'];
|
|
}else{
|
|
return jsonReturn('验证失败');
|
|
}
|
|
$userId = (int)session('WST_USER.userId');
|
|
$rs = $this->field('payPwd,loginSecret')->find($userId);
|
|
if($rs['payPwd']==md5($payPwd.$rs['loginSecret'])){
|
|
return jsonReturn('',1);
|
|
}
|
|
return jsonReturn('支付密码错误',-1);
|
|
}
|
|
/**
|
|
* 获取首页数据
|
|
* @param [type] $userId [description]
|
|
* @return [type] [description]
|
|
*/
|
|
function getIndex($userId){
|
|
|
|
}
|
|
function getUserInfo($userId,$field){
|
|
return $this->where(['userId'=>$userId])->field($field)->find();
|
|
}
|
|
function appLogOut($userId){
|
|
$this->where(['userId'=>$userId])->setField('token','');
|
|
session('WST_USER',null);
|
|
//setcookie("loginPwd", null);
|
|
session('WST_MO_WlADDRESS',null);
|
|
}
|
|
|
|
|
|
}
|