|
@@ -72,9 +72,9 @@ Page({
|
|
|
dy(){
|
|
|
let that = this
|
|
|
wx.requestSubscribeMessage({
|
|
|
- tmplIds: ['aGohosyMWmBOdzkjlD34qMRIsAPb2cVY6juinVIevgg'],
|
|
|
+ tmplIds: ['0Rh0woW2g6Mu6SDwDSs4x2pm6b5Re0xo_7Ugc_3pJps'],
|
|
|
success (res) {
|
|
|
- if(res['aGohosyMWmBOdzkjlD34qMRIsAPb2cVY6juinVIevgg']=='accept'){
|
|
|
+ if(res['0Rh0woW2g6Mu6SDwDSs4x2pm6b5Re0xo_7Ugc_3pJps']=='accept'){
|
|
|
wx.request({
|
|
|
url: baseUrl + '/mini/qrCode/getQrCode?qrcodeSign=nazzd',
|
|
|
method: 'GET',
|
|
@@ -83,9 +83,9 @@ Page({
|
|
|
'mini-token':cacheGet('token')
|
|
|
},
|
|
|
success: function(res){
|
|
|
- const decoder = new TextDecoder();
|
|
|
- const str = decoder.decode(res.data);
|
|
|
try{
|
|
|
+ let str = String.fromCharCode.apply(null, new Uint8Array(res.data));
|
|
|
+ str = decodeURIComponent(escape((str)));
|
|
|
let result = JSON.parse(str)
|
|
|
if (result.msg == '请重新登录' && !result.result) {
|
|
|
wx.showModal({
|