wzq преди 5 години
родител
ревизия
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) {