wzq il y a 5 ans
Parent
commit
f19b51c798
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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);
     }
 }