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

调试

parent 72b4b595
......@@ -76,12 +76,12 @@
type: 'sgy',
encryptDataMap: info.data,
}).then((res: any) => {
xma.showModal({
title: '请求结果',
content: JSON.stringify(res),
showCancel: false,
confirmText: '关闭'
})
// xma.showModal({
// title: '请求结果',
// content: JSON.stringify(res),
// showCancel: false,
// confirmText: '关闭'
// })
getApp().globalData!.user.certno = res.uIdCardNo;
Api.foo.insuranceType({
psnCertType: getApp().globalData!.user.psnCertType,
......
......@@ -46,7 +46,15 @@ class Request {
xma.request({
...config,
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') {
resolve(responseOnFulfilled?.(result.data.data) || result.data.data);
} 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