|
@@ -1897,7 +1897,7 @@ class AlbumController extends Controller
|
|
"url" => "http://weixin.qq.com/download",
|
|
"url" => "http://weixin.qq.com/download",
|
|
"template_id" => $weChatApp->wxaccount_template_id,
|
|
"template_id" => $weChatApp->wxaccount_template_id,
|
|
"miniprogram" => array(
|
|
"miniprogram" => array(
|
|
- "appid" => $weChatApp->app_id,
|
|
|
|
|
|
+ "appid" => $weChatApp->xyx_id,
|
|
"pagepath" => $page
|
|
"pagepath" => $page
|
|
),
|
|
),
|
|
"data" => array(
|
|
"data" => array(
|
|
@@ -1951,7 +1951,7 @@ class AlbumController extends Controller
|
|
|
|
|
|
public function getAccessToken($app)
|
|
public function getAccessToken($app)
|
|
{
|
|
{
|
|
- $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $app->app_id . "&secret=" . $app->app_secret;
|
|
|
|
|
|
+ $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $app->xyx_id . "&secret=" . $app->xyx_secret;
|
|
$data = $this->curlGet($url);
|
|
$data = $this->curlGet($url);
|
|
$data = json_decode($data, true);
|
|
$data = json_decode($data, true);
|
|
if( !isset($data["access_token"]) )
|
|
if( !isset($data["access_token"]) )
|