Przeglądaj źródła

Merge branch 'develop' of http://git.caihongxingqiu.net/rainbow/config-service into develop

xielin 5 lat temu
rodzic
commit
84dc7fb1e2
1 zmienionych plików z 1 dodań i 6 usunięć
  1. 1 6
      app/Services/WechatService.php

+ 1 - 6
app/Services/WechatService.php

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