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

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

xqd
@@ -251,7 +251,7 @@ class MyController extends Controller
     public function reply()
     {
         $user = $this->getUser();
-        $data = CommentInfoModel::where('user_id',$user->id)->orderBy('id','desc')->get();
+        $data = CommentInfoModel::where('to_user_id',$user->id)->orderBy('id','desc')->get();
 
         foreach ($data as $item){   //访问接口  标记已读
             $item->update(['is_read'=>1]);