\utilsWechat

Summary

Methods
Properties
Constants
getQRCode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getAccessToken()
getTicket()
post_json_data()
No private properties found
N/A

Methods

getQRCode()

getQRCode(  $sceneid,   $type = 'temp',   $expire_seconds = 604800) 

Parameters

$sceneid
$type
$expire_seconds

getAccessToken()

getAccessToken() 

getTicket()

getTicket(string  $sceneid, string  $type = 'temp', string  $expire_seconds = 604800) : string

首先创建二维码ticket

Parameters

string $sceneid

场景值ID

string $type

值为'temp'的时候生成临时二维码

string $expire_seconds

二维码过期时间

Returns

string —

二维码ticket

post_json_data()

post_json_data(  $url,   $data_string) 

Parameters

$url
$data_string