gq 7 lat temu
rodzic
commit
285c482b94

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

xqd xqd
@@ -7,6 +7,7 @@ use App\Models\BaseDictionaryOptionModel;
 use App\Models\BaseSettingsModel;
 use App\Models\CommentInfoModel;
 use App\Models\DreamInfoModel;
+use App\Models\InteractionInfo;
 use App\Models\SearchInfoModel;
 use App\Models\Suggest;
 use App\Models\SystemInfoModel;
@@ -258,6 +259,9 @@ class MyController extends Controller
 
         foreach ($data as $item){   //访问接口  标记已读
             $item->update(['is_read'=>0]);
+            $info = InteractionInfo::find($item->interaction_id);
+            $dream_id =empty($info) ? 0 : $info->dream_id;
+            $item->dream_id = $dream_id;
         }
         return $this->api($data);
     }