|
@@ -25,8 +25,8 @@ trait WeChat
|
|
|
public static function getApp($account_name){
|
|
|
$account = self::getAccount($account_name);
|
|
|
$app = Factory::officialAccount($account['settings']);
|
|
|
-// $cache = new RedisAdapter(app('redis')->connection()->client());
|
|
|
-// $app->rebind('cache', $cache);
|
|
|
+ $cache = new RedisAdapter(app('redis')->connection()->client());
|
|
|
+ $app->rebind('cache', $cache);
|
|
|
return $app;
|
|
|
}
|
|
|
|