gq %!s(int64=7) %!d(string=hai) anos
pai
achega
5c4ba2f28e

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

@@ -30,7 +30,7 @@ class Controller extends BaseController
         $this->middleware('auth:api', [
         $this->middleware('auth:api', [
             'except' => [
             'except' => [
                 'upload', 'getCode', 'login', 'wechatLogin', 'alipayNotify', 'wechatpayNotify',
                 'upload', 'getCode', 'login', 'wechatLogin', 'alipayNotify', 'wechatpayNotify',
-                'download',  'test','home','reply'
+                'download',  'test','home'
             ]
             ]
         ]);
         ]);
 
 

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

@@ -255,7 +255,7 @@ class MyController extends Controller
     public function reply()
     public function reply()
     {
     {
         $user = $this->getUser();
         $user = $this->getUser();
-        $user = UserInfoModel::find(4);
+//        $user = UserInfoModel::find(4);
         $data = CommentInfoModel::where('to_user_id',$user->id)->orderBy('id','desc')->get(); //user_id
         $data = CommentInfoModel::where('to_user_id',$user->id)->orderBy('id','desc')->get(); //user_id
         foreach ($data as $item){   //访问接口  标记已读
         foreach ($data as $item){   //访问接口  标记已读
 //            dump(234324);
 //            dump(234324);