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