Skip to content

Commit f786112

Browse files
1. MiniProgram.php初始化时,accessToken参数默认为空
1 parent 97e0451 commit f786112

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ if ($accessToken == '') {
6464
echo 'accessToken:' . $accessToken . '<br>';
6565
}
6666
67+
// 解密登录用户数据
6768
$paramArr['code'] = '';
6869
$paramArr['rawData'] = '';
6970
$paramArr['signature'] = '';

src/MiniProgram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MiniProgram
2323
* @param $appId
2424
* @param $appSecret
2525
*/
26-
public function __construct($appId, $appSecret, $accessToken)
26+
public function __construct($appId, $appSecret, $accessToken = '')
2727
{
2828
$this->appId = $appId;
2929
$this->appSecret = $appSecret;

0 commit comments

Comments
 (0)