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

more detailed cache key. #1028

Merged
merged 2 commits into from
Nov 15, 2017
Merged

more detailed cache key. #1028

merged 2 commits into from
Nov 15, 2017

Conversation

mingyoung
Copy link
Collaborator

No description provided.

@@ -82,7 +77,7 @@ public function getConfigArray(array $apis, bool $debug = false, bool $beta = fa
*/
public function getTicket(bool $refresh = false, string $type = 'jsapi'): array
{
$cacheKey = self::TICKET_CACHE_PREFIX.$this->getAppId();
$cacheKey = "easywechat.basic_service.jssdk.ticket.{$type}.{$this->getAppId()}";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 sprintf 吧

@overtrue overtrue merged commit 062a5a6 into master Nov 15, 2017
@overtrue overtrue deleted the js-ticket-cache-key branch November 15, 2017 03:01
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