Browse Source

发布成功返回url

wzq 5 years ago
parent
commit
9a81f9f15a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Repositories/PostRepositories.php

+ 1 - 1
app/Repositories/PostRepositories.php

@@ -183,7 +183,7 @@ class PostRepositories
             foreach($topicIds as $id){
                 Redis::zincrby('topic.user_uid'.$userInfo['uid'], 1, $id);
             }
-            return jsonSuccess();
+            return jsonSuccess(['h5url' => config('customer.share_post_h5url')."?post_id={$post->id}&invite_code={$userInfo['invite_code']}", 'bean' => config('customer.share_post_bean')]);
 
         }catch (QueryException $exception){
             DB::rollBack();