gq %!s(int64=7) %!d(string=hai) anos
pai
achega
27ee355474
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      server/app/Http/Controllers/Api/V1/HomeController.php

+ 1 - 4
server/app/Http/Controllers/Api/V1/HomeController.php

xqd xqd
@@ -59,7 +59,7 @@ class HomeController extends Controller
         $fens = UserCareUser::where('other_user_id',$user_id)->get();
         $user = UserInfoModel::find($user_id);
         if (count($user) == 0) return $this->error(ErrorCode::USER_DOES_NOT_EXIST);
-        $user = $this->getUser();
+//        $user = $this->getUser();
         $emotion = BaseDictionaryOptionModel::where(['dictionary_code' => 'emotion'])->
             where('dictionary_table_code','user_info')->
         where(['value' => $user->emotion])->first();
@@ -88,11 +88,8 @@ class HomeController extends Controller
             $sup_dream->pics = $sup_dream->imgs;
         }
         $is_care = UserCareUser::where('other_user_id',$user_id)->where('user_id',$user->id)->first();
-//        dump($user->id);
-//        dd($user_id);
         $is_care = empty($is_care) ? 0 : 1 ;
         return $this->api(compact('user','near_dream','sup_dreams','imgs','dreams','score','is_care'));
-
     }
 
     //    关注用户