|
@@ -61,6 +61,8 @@ class HomeService
|
|
public function user_detail($user_id){
|
|
public function user_detail($user_id){
|
|
$user = auth('api')->user();
|
|
$user = auth('api')->user();
|
|
|
|
|
|
|
|
+ throw new Exception("2222");
|
|
|
|
+
|
|
//判断逛一逛用户和非会员用户
|
|
//判断逛一逛用户和非会员用户
|
|
if(!$user){
|
|
if(!$user){
|
|
throw new AuthException("请先登录");
|
|
throw new AuthException("请先登录");
|