|
|
@@ -43,7 +43,7 @@ export async function PinyinLogin(ctx) {
|
|
43
|
43
|
delete param.Code;
|
|
44
|
44
|
if (param.sessionKey && param.iv && param.encryptedData){
|
|
45
|
45
|
//console.log("param.sessionKey:"+param.sessionKey);
|
|
46
|
|
- const pc = new WXBizDataCrypt(config.wx.phonics_appid, param.sessionKey);
|
|
|
46
|
+ const pc = new WXBizDataCrypt(config.wx.pinyin_appid, param.sessionKey);
|
|
47
|
47
|
const dataUnionID = pc.decryptData(param.encryptedData , param.iv);
|
|
48
|
48
|
//console.log(dataUnionID);
|
|
49
|
49
|
param.UnionID = dataUnionID.unionId;
|