wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
01e6a2c2ae
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) {