1
0

补充文件

This commit is contained in:
2023-11-16 13:41:09 +08:00
parent 13e93d342e
commit bff28ef911
608 changed files with 149699 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ class Token extends Wechat
/**
* 接口名称与URL映射
*
* @var array
*/
protected static $url = [
@@ -27,6 +28,7 @@ class Token extends Wechat
/**
* 获取ACCESS_TOKEN
*
* @return [type] [description]
*/
public static function get()
@@ -36,6 +38,7 @@ class Token extends Wechat
'secret' => parent::$config['secret'],
'grant_type' => 'client_credential',
];
$result = Utils::api(self::$url['access_token'], $params);
if ($result) {
return $result['access_token'];
@@ -46,6 +49,7 @@ class Token extends Wechat
/**
* 获取JSAPI_TICKET
*
* @return [type] [description]
*/
public static function ticket()