| xqd
@@ -59,6 +59,9 @@ class UserController extends Controller
|
|
|
$id = $this->userId;
|
|
|
}
|
|
|
$info = User::query()->where('id',$id)->first();
|
|
|
+ if(!$info){
|
|
|
+ return $this->error("用户不存在!");
|
|
|
+ }
|
|
|
// 会员是否到期
|
|
|
if($info && !empty($info['end_time'])){
|
|
|
if(time() > strtotime($info['end_time'])){
|