|
@@ -82,7 +82,7 @@ class WeixinJsSDK extends Controller {
|
|
|
if ($data->expire_time < time()) {
|
|
|
$accessToken = $this->getAccessToken();
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=' . $accessToken;
|
|
|
- $url = 'https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=' . $accessToken;
|
|
|
+
|
|
|
$res = json_decode($this->httpGet($url));
|
|
|
$ticket = $res->ticket;
|
|
|
if ($ticket) {
|
|
@@ -110,7 +110,7 @@ class WeixinJsSDK extends Controller {
|
|
|
$data = json_decode($this->objMemache->get('token'));
|
|
|
if ($data->expire_time < time()) {
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.$this->appId.'&secret=' . $this->appSecret;
|
|
|
- $url = 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=' . $this->appId . '&corpsecret=' . $this->appSecret;
|
|
|
+
|
|
|
$res = json_decode($this->httpGet($url));
|
|
|
$access_token = $res->access_token;
|
|
|
if ($access_token) {
|