wang hou sheng 7 months ago
parent 2ae5dc4079
commit 1bc809cc3e
  1. 3
      app/common/library/wxserver/Wholesaler.php

@ -57,6 +57,7 @@ class Wholesaler
$data = $this->crypt->fromXml($encryptXml);
if (!empty($data['ComponentVerifyTicket'])) {
$ticket = $data['ComponentVerifyTicket'];
Cache::set('wholesaler_component_verify_ticket', $ticket);
}
}
return $ticket;
@ -97,7 +98,7 @@ class Wholesaler
return Cache::get('wholesaler_component_access_token');
}
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_component_token';
$ticket = Cache::get('component_verify_ticket');
$ticket = Cache::get('wholesaler_component_verify_ticket');
if (!empty($ticket)) {
$data = [];
$data['component_appid'] = self::APPID;

Loading…
Cancel
Save