wzq 5 vuotta sitten
vanhempi
commit
01e6a2c2ae
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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) {