wzq лет назад: 5
Родитель
Сommit
01e6a2c2ae
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app/Repositories/Post/PostRepository.php

+ 4 - 0
app/Repositories/Post/PostRepository.php

@@ -181,6 +181,10 @@ class PostRepository
                 $this->postImgs->insert($imgData);
             }
 
+            if(isset($request['store_id']) && $request['store_id']){
+                $this->postStore->where('id', $request['store_id'])->update(['is_used' => 1]);
+            }
+
             DB::commit();
             Redis::zadd('post_trigger_type', 0, $post->id);
             foreach ($topicIdsArray as $id) {