File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function getAccessTokenData()
4343 'appid ' =>$ this ->appId ,
4444 'secret ' =>$ this ->appSecret
4545 );
46- $ url = MiniProgram ::API_HOST . MiniProgram ::ACCESS_TOKEN_PATH . http_build_query ($ urlParamArr );
46+ $ url = self ::API_HOST . self ::ACCESS_TOKEN_PATH . http_build_query ($ urlParamArr );
4747 $ res = json_decode ($ this ->http_request ($ url ), true );
4848 if ($ res ['errcode ' ]) {
4949 return '' ;
@@ -119,7 +119,7 @@ public function jscode2Session($code)
119119 'js_code ' =>$ code ,
120120 'grant_type ' =>'authorization_code '
121121 );
122- $ url = MiniProgram ::API_HOST . MiniProgram ::JSCODE_2_SESSSION_PATH . http_build_query ($ urlParamArr );
122+ $ url = self ::API_HOST . self ::JSCODE_2_SESSSION_PATH . http_build_query ($ urlParamArr );
123123 $ res = json_decode ($ this ->http_request ($ url ),true );
124124 return $ res ;
125125 }
@@ -133,7 +133,7 @@ public function getWxacodeUnlimit($postParamArr = array())
133133 $ urlParamArr = array (
134134 'access_token ' =>$ this ->accessToken
135135 );
136- $ url = MiniProgram ::API_HOST . MiniProgram ::WXACODE_UNLIMIT_PATH . http_build_query ($ urlParamArr );
136+ $ url = self ::API_HOST . self ::WXACODE_UNLIMIT_PATH . http_build_query ($ urlParamArr );
137137 $ res = $ this ->http_request ($ url , json_encode ($ postParamArr ));
138138 return $ res ;
139139 }
You can’t perform that action at this time.
0 commit comments