|
@@ -6,6 +6,7 @@ namespace App\Http\Controllers\Api;
|
|
|
|
|
|
use App\Enums\ApiEnum;
|
|
use App\Enums\ApiEnum;
|
|
use App\Exceptions\AuthException;
|
|
use App\Exceptions\AuthException;
|
|
|
|
+use App\Exceptions\VipException;
|
|
use App\Http\Params\UserCommentParam;
|
|
use App\Http\Params\UserCommentParam;
|
|
use App\Http\Params\UserLikeParam;
|
|
use App\Http\Params\UserLikeParam;
|
|
use App\Models\UserPhotoDestroy;
|
|
use App\Models\UserPhotoDestroy;
|
|
@@ -94,6 +95,8 @@ class HomeController extends Controller
|
|
$param['user_id'] = $request->user_id;
|
|
$param['user_id'] = $request->user_id;
|
|
$param['tencent_im_user_id'] = $request->tencent_im_user_id;
|
|
$param['tencent_im_user_id'] = $request->tencent_im_user_id;
|
|
$res = $this->homeService->user_detail($param);
|
|
$res = $this->homeService->user_detail($param);
|
|
|
|
+ }catch (VipException $exception){
|
|
|
|
+ return response()->json(['message'=>$exception->getMessage()])->setStatusCode(410);
|
|
}catch (AuthException $exception){
|
|
}catch (AuthException $exception){
|
|
return $this->response->errorUnauthorized($exception->getMessage());
|
|
return $this->response->errorUnauthorized($exception->getMessage());
|
|
}catch (\Exception $exception){
|
|
}catch (\Exception $exception){
|
|
@@ -171,6 +174,8 @@ class HomeController extends Controller
|
|
public function get_weixin(Request $request){
|
|
public function get_weixin(Request $request){
|
|
try {
|
|
try {
|
|
$res = $this->homeService->get_weixin($request->user_id);
|
|
$res = $this->homeService->get_weixin($request->user_id);
|
|
|
|
+ }catch (VipException $exception){
|
|
|
|
+ return response()->json(['message'=>$exception->getMessage()])->setStatusCode(410);
|
|
}catch (\Exception $exception){
|
|
}catch (\Exception $exception){
|
|
return $this->response->errorForbidden($exception->getMessage());
|
|
return $this->response->errorForbidden($exception->getMessage());
|
|
}
|
|
}
|