|
@@ -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);
|
|
|
}
|
|
|
}
|