|
|
|
@ -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; |
|
|
|
|