|
|
@@ -206,7 +206,7 @@ export async function GetBaiduToken (ctx) {
|
|
206
|
206
|
const { Code, ProgramID } = ctx.query;
|
|
207
|
207
|
|
|
208
|
208
|
let appidObj=getAppIDAndSecret(ProgramID);
|
|
209
|
|
- let appid = appidObj.appid;
|
|
|
209
|
+ let appid = appidObjappid;
|
|
210
|
210
|
let secret = appidObj.secret;
|
|
211
|
211
|
|
|
212
|
212
|
const url = `https://api.weixin.qq.com/sns/jscode2session?appid=${appid}&secret=${secret}&js_code=${Code}&grant_type=authorization_code`;
|
|
|
@@ -290,7 +290,7 @@ export const MsgSecCheck2 = async (ctx) => {
|
|
290
|
290
|
|
|
291
|
291
|
function getAppIDAndSecret(ProgramID){
|
|
292
|
292
|
let appid = '', secret = '';
|
|
293
|
|
- switch (ProgramID) {
|
|
|
293
|
+ switch (ProgramID.toString()) {
|
|
294
|
294
|
case '99':
|
|
295
|
295
|
appid = config.wx.phonics_appid;
|
|
296
|
296
|
secret = config.wx.phonics_appsecret;
|