Commit 41ab44e7 authored by 英思-陈欢's avatar 英思-陈欢

调试

parent 68ca94cc
......@@ -64,13 +64,6 @@
xma.xh.getUserProfile({
range: ['CITIZEN'],
success(info: any) {
console.log(333, info)
xma.showModal({
title: '请求成功',
content: JSON.stringify(info),//result.data.msg,
showCancel: false,
confirmText: '关闭'
})
Api.foo.getXinhuaDecrypt({
appid: 'dffb71ae33637ab293036b2c2a419127',
systemcode: 'my-centre',
......@@ -84,7 +77,7 @@
showCancel: false,
confirmText: '关闭'
})
getApp().globalData!.user = res.data;
getApp().globalData!.user.certno = res.data.uIdCardNo;
Api.foo.insuranceType({
psnCertType: getApp().globalData!.user.psnCertType,
certno: getApp().globalData!.user.certno,
......
......@@ -49,7 +49,9 @@ class Request {
// console.log('dncryptData', decrypt(result.data))
if (`${result.data.code}` == 'success') {
resolve(responseOnFulfilled?.(result.data.data) || result.data.data);
} else {
} else if (`${result.statusCode}` == 200) {
resolve(responseOnFulfilled?.(result.data) || result.data);
} else {
xma.showModal({
title: '请求出错',
content: JSON.stringify(result),//result.data.msg,
......
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