Skip to content

Commit 4ca61a7

Browse files
committed
up fix
1 parent 26bf0c1 commit 4ca61a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/OfficialAccount/JsSdk/JsTicket.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class JsTicket extends JsApiBase implements JsTicketInterface
2222
*/
2323
function getTicket($refreshTimes = 1): ?string
2424
{
25-
return $this->getJsApi()->getOfficialAccount()->getConfig()->getStorage()->get('jsapi_ticket');
25+
return $this->getOfficialAccount()->getConfig()->getStorage()->get('jsapi_ticket');
2626
}
2727

2828
/**
@@ -33,8 +33,8 @@ function getTicket($refreshTimes = 1): ?string
3333
*/
3434
function refreshTicket(): ?string
3535
{
36-
$officialAccountConfig = $this->getJsApi()->getOfficialAccount()->getConfig();
37-
$accessToken = $this->getJsApi()->getOfficialAccount()->accessToken()->getToken();
36+
$officialAccountConfig = $this->getOfficialAccount()->getConfig();
37+
$accessToken = $this->getOfficialAccount()->accessToken()->getToken();
3838
$response = NetWork::getForJson(ApiUrl::generateURL(ApiUrl::JSAPI_GET_TICKET, [
3939
'ACCESS_TOKEN' => $accessToken,
4040
]));

0 commit comments

Comments
 (0)