| xqd
@@ -53,10 +53,10 @@ class UserController extends Controller
|
|
|
public function show()
|
|
|
{
|
|
|
$info = User::query()->where('id',$this->userId)->first();
|
|
|
-
|
|
|
+ // 会员是否到期
|
|
|
if($info && !empty($info['end_time'])){
|
|
|
if(time() > strtotime($info['end_time'])){
|
|
|
- $info->member_type == 1;
|
|
|
+ $info->member_type = 1;
|
|
|
$info->save();
|
|
|
}
|
|
|
}
|