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