duqinya %!s(int64=5) %!d(string=hai) anos
pai
achega
0c4729efcf
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 1 0
      app/Helper/helper.php
  2. 2 2
      app/Repositories/BeanRepository.php
  3. 1 2
      app/Traits/UserTrait.php

+ 1 - 0
app/Helper/helper.php

@@ -66,6 +66,7 @@ function http($url, $param, $method = 'post')
         $response = $client->request($method, $url, $param);
         $result = json_decode($response->getBody()->getContents(), true);
         \Illuminate\Support\Facades\Log::debug('url:'.$url.'param:'.json_encode($param).'response:'.json_encode($result));
+        dd($result);
         if (isset($result['code']) && $result['code'] == 0) {
             return $result['data'];
         } else {

+ 2 - 2
app/Repositories/BeanRepository.php

@@ -146,9 +146,9 @@ class BeanRepository
         $content_author_id = array_column($excellent_residents,'content_author_id');
         $content_author_id = array_unique($content_author_id);
         $uids = implode(',', $content_author_id);
-        Log::debug('uids'.$uids);
+        Log::debug($uids);
         $author_data = $this->getFollowMembersStatus($uids);
-        Log::debug('author_data'.$author_data);
+        Log::debug($author_data);
         if ($author_data){
             foreach ($excellent_residents as $k=>$v){
                 if(!isset($author_data[$v['content_author_id']])) continue;

+ 1 - 2
app/Traits/UserTrait.php

@@ -48,10 +48,9 @@ trait UserTrait
             $array = [
                 'json' => ['sign' => $sign, 'uids' => $uids], 'query' => [], 'http_errors' => false,'headers'=>['Authorization'=>"Bearer ".JWTAuth::getToken()]
             ];
-            Log::debug('http_data'.$sign,$url,$uids);
             return http($url,$array,'get');
         } catch (\Exception $e) {
-            Log::debug('error'.$e->getMessage());
+            Log::debug($e->getMessage());
             return [];
         }