wzq 5 years ago
parent
commit
f19b51c798
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/Services/WechatService.php

+ 5 - 1
app/Services/WechatService.php

@@ -18,6 +18,10 @@ class WechatService
 
     public function share()
     {
-        return $this->app->jssdk->buildConfig(['updateAppMessageShareData', 'updateTimelineShareData'], true);
+        $type = true;
+        if(env('APP_ENV') == 'production'){
+            $type =false;
+        }
+        return $this->app->jssdk->buildConfig(['updateAppMessageShareData', 'updateTimelineShareData'], $type);
     }
 }