This commit is contained in:
候学杰 2019-02-21 16:30:17 +08:00
parent faa9c142ca
commit f069d47bce

View File

@ -16,7 +16,7 @@ class Miniprogram
$this->work = $work; $this->work = $work;
} }
public function code2Session($code,$type = 'authorization_code') public function code2Session($code, $type = 'authorization_code')
{ {
$request = $this->work->transformForGetRequest('miniprogram/jscode2session', [ $request = $this->work->transformForGetRequest('miniprogram/jscode2session', [
'js_code' => $code, 'js_code' => $code,