Commit fb1c65ed by LiuJunYi

用户权限问题

parent e6010db2
......@@ -156,7 +156,10 @@ class User extends Base
{
//用户UID
$uid = $this->userinfo[0];
$user = UserModel::get($uid)->toArray();
$user = UserModel::get($uid);
if(!$user){
return ['code'=>1,'msg'=>'用户不存在'];
}
//过期时间
if($user['is_vip']){
if(strtotime($user['vip_endtime'])>time()){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment