wzq 5 年之前
父節點
當前提交
3c775604ca
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Repositories/PostRepositories.php

+ 2 - 2
app/Repositories/PostRepositories.php

@@ -148,7 +148,7 @@ class PostRepositories
         try{
             $post = $this->post->create($data);
 
-            $this->postData->create([
+            $postData = $this->postData->create([
                 'post_id' => $post->id,
                 'pv' => 0,
                 'pv_real' => 0,
@@ -187,7 +187,7 @@ class PostRepositories
             return jsonSuccess([
                 'post_id' => $post->id,
                 'h5url' => config('customer.share_post_h5url')."?post_id={$post->id}&invite_code={$userInfo['invite_code']}",
-                'bean' => $post->available_bean,
+                'bean' => $postData->available_bean,
             ]);
 
         }catch (QueryException $exception){