|
@@ -6,6 +6,7 @@ use Catch\Base\CatchController;
|
|
use EasyWeChat\OpenPlatform\Application;
|
|
use EasyWeChat\OpenPlatform\Application;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Request;
|
|
|
|
+use Illuminate\Support\Facades\Cache;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Redis;
|
|
use Illuminate\Support\Facades\Redis;
|
|
use Modules\Channel\Models\WechatAuthorizationInfo;
|
|
use Modules\Channel\Models\WechatAuthorizationInfo;
|
|
@@ -65,7 +66,7 @@ class WechatOpenPlatformController extends CatchController
|
|
$componentInfo = WechatOpenPlatformService::getComponentInfoByAppid($component_appid);
|
|
$componentInfo = WechatOpenPlatformService::getComponentInfoByAppid($component_appid);
|
|
myLog('authorCommand')->info('start:'. $component_appid);
|
|
myLog('authorCommand')->info('start:'. $component_appid);
|
|
$app = WechatOpenPlatformService::buildApplication($componentInfo);
|
|
$app = WechatOpenPlatformService::buildApplication($componentInfo);
|
|
- $app->setCache(app('cache.store'));
|
|
|
|
|
|
+ $app->setCache(Cache::store('redis'));
|
|
$server = $app->getServer();
|
|
$server = $app->getServer();
|
|
|
|
|
|
$server->handleVerifyTicketRefreshed(function($message, \Closure $next) {
|
|
$server->handleVerifyTicketRefreshed(function($message, \Closure $next) {
|