|
@@ -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) {
|