Constants

CODE_2_SESSION_URL

CODE_2_SESSION_URL = 'https://api.weixin.qq.com/sns/jscode2session'

REDIS_SESSION_KEY_PRE

REDIS_SESSION_KEY_PRE = 'wx_session_key_%s'

Properties

$httpService

$httpService : 

Type

$userService

$userService : 

Type

$appId

$appId : 

Type

$secret

$secret : 

Type

Methods

__construct()

__construct(\App\Services\HttpService  $httpService, \App\Services\UserService  $userService) 

Parameters

\App\Services\HttpService $httpService
\App\Services\UserService $userService

fetchCode2Session()

fetchCode2Session(\App\Services\string  $jsCode) 

Parameters

\App\Services\string $jsCode

decryptUserInfoData()

decryptUserInfoData(\App\Services\string  $encryptedData, \App\Services\string  $iv, \App\Services\string  $clientId) 

Parameters

\App\Services\string $encryptedData
\App\Services\string $iv
\App\Services\string $clientId

decryptUserPhoneData()

decryptUserPhoneData(\App\Services\string  $encryptedData, \App\Services\string  $iv, \App\Services\string  $clientId) 

Parameters

\App\Services\string $encryptedData
\App\Services\string $iv
\App\Services\string $clientId

decryptData()

decryptData(\App\Services\string  $encryptedData, \App\Services\string  $iv, \App\Services\string  $clientId) 

Parameters

\App\Services\string $encryptedData
\App\Services\string $iv
\App\Services\string $clientId

genClientId()

genClientId()