|
@@ -51,13 +51,8 @@ class WechatOpenPlatformService
|
|
|
'secret' => $componentInfo->secret,
|
|
|
'token' => $componentInfo->token,
|
|
|
'aes_key' => $componentInfo->aes_key,
|
|
|
- 'response_type' => 'array',
|
|
|
- 'http' => [
|
|
|
- 'throw' => true,
|
|
|
- 'timeout' => 5.0,
|
|
|
- 'retry' => true,
|
|
|
- ],
|
|
|
];
|
|
|
+ $config = array_merge($config, config('easywechat'));
|
|
|
$app = Factory::openPlatform($config);
|
|
|
$app->rebind('cache', Cache::store('redis'));
|
|
|
return $app;
|