微信公众号获取access_token接口的时候,测试号appid错误?
const {appID,appsecret} = require('../config');
//只需要引入request-promise-native
const rp = require('request-promise-native');
//定义类,获取access_token
class Wechat{
constructor() {
}
/*
获取access_token
*/
getAccessToken(){
const url='https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${appID}&secret=${appsecret}';
但是我的appid和secret都是直接复制的,是正确的呀 报错信息:{ errcode: 40013, errmsg: 'invalid appid rid: 63477975-0f09049d-2f87403e' }