Commit 0b9c0003 authored by 英思-陈欢's avatar 英思-陈欢

调试

parent 72b4b595
...@@ -76,12 +76,12 @@ ...@@ -76,12 +76,12 @@
type: 'sgy', type: 'sgy',
encryptDataMap: info.data, encryptDataMap: info.data,
}).then((res: any) => { }).then((res: any) => {
xma.showModal({ // xma.showModal({
title: '请求结果', // title: '请求结果',
content: JSON.stringify(res), // content: JSON.stringify(res),
showCancel: false, // showCancel: false,
confirmText: '关闭' // confirmText: '关闭'
}) // })
getApp().globalData!.user.certno = res.uIdCardNo; getApp().globalData!.user.certno = res.uIdCardNo;
Api.foo.insuranceType({ Api.foo.insuranceType({
psnCertType: getApp().globalData!.user.psnCertType, psnCertType: getApp().globalData!.user.psnCertType,
......
...@@ -46,7 +46,15 @@ class Request { ...@@ -46,7 +46,15 @@ class Request {
xma.request({ xma.request({
...config, ...config,
success: (result: any) => { success: (result: any) => {
// console.log('dncryptData', decrypt(result.data)) console.log(result)
if (config.url == 'https://onemoment.gywb.cn/back/one-visit/one-visit/web/oneVisit/getXinhuaDecrypt') {
xma.showModal({
title: '请求结果1',
content: JSON.stringify(result),
showCancel: false,
confirmText: '关闭'
})
}
if (`${result.data.code}` == 'success') { if (`${result.data.code}` == 'success') {
resolve(responseOnFulfilled?.(result.data.data) || result.data.data); resolve(responseOnFulfilled?.(result.data.data) || result.data.data);
} else if (`${result.statusCode}` == '200') { } else if (`${result.statusCode}` == '200') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment