|
@@ -982,8 +982,8 @@ class Index extends Api
|
|
|
// $access_token = '';
|
|
|
if (!$access_token) {
|
|
|
//获取$access_token
|
|
|
-// $url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.config('wxchatpay.app_id').'&secret='.config('wxchatpay.app_secret');
|
|
|
- $url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx326ed0bf442d2773&secret=33609a3bc45bb407f0b26816158405b8';
|
|
|
+ $url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.config('wxchatpay.app_id').'&secret='.config('wxchatpay.app_secret');
|
|
|
+// $url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx326ed0bf442d2773&secret=33609a3bc45bb407f0b26816158405b8';
|
|
|
$result = file_get_contents($url);
|
|
|
$result = json_decode($result, true);
|
|
|
$access_token = $result['access_token'];
|
|
@@ -994,10 +994,11 @@ class Index extends Api
|
|
|
$this->error('参数缺失');
|
|
|
}
|
|
|
|
|
|
-// $data['scene'] = 'id='.$id.'&code='.$this->auth->invite_no;
|
|
|
- $data['scene'] = urlencode('id=AVwvR&code='.$this->auth->invite_no);
|
|
|
-// $data['page'] = 'pages/home/detail';
|
|
|
- $data['page'] = 'pages/product/product';
|
|
|
+ $data['scene'] = 'id='.$id.'&code='.$this->auth->invite_no;
|
|
|
+// $data['scene'] = 'id=AVwvR&code='.$this->auth->invite_no;
|
|
|
+ $data['page'] = 'pages/home/detail';
|
|
|
+ $data['env_version'] = 'env_version';
|
|
|
+// $data['page'] = 'pages/product/product';
|
|
|
|
|
|
$url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" . $access_token;
|
|
|
$ch = curl_init($url);
|