Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.1] Payment/API 没有使用全局的 cache #878

Merged
merged 2 commits into from
Aug 27, 2017
Merged

[3.1] Payment/API 没有使用全局的 cache #878

merged 2 commits into from
Aug 27, 2017

Conversation

xuxucode
Copy link
Contributor

$options里设置了自定义 cache,但 Payment/API 总是默认使用 FilesystemCache

use EasyWeChat\Foundation\Application;
use Example\MyCustomCache;

$cache = new MyCustomCache();

$options = [
    'app_id' => 'xxxx',
    'cache' => $cache
    // ...
    // payment
    'payment' => [
        'merchant_id'        => 'your-mch-id',
        // ...
    ],
];
$app = new Application($options);

需要在创建 Payment/API 时,传入 cache 参数。

@xuxucode xuxucode changed the base branch from master to 3.1 August 27, 2017 04:36
@overtrue overtrue merged commit 9d7814e into w7corp:3.1 Aug 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants