| xqd
@@ -52,7 +52,15 @@ class UserController extends Controller
|
|
|
*/
|
|
|
public function show()
|
|
|
{
|
|
|
- $info = (new UserService())->show($this->userId);
|
|
|
+ $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->save();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$info->follow_count = UserFollow::query()->where('user_id',$this->userId)->count();
|
|
|
return $this->success($info);
|
|
|
}
|