|
看了下你的代码,有几个值我这边返回的都是0,导致计算错误
"flowInfo": {
"commonFlow": {
"total": "",
"balance": "0",
"used": "61511340",
"over": "0",
"title": "已用通用流量",
"showField": "1",
"link": "",
"linkType": ""
},
"specialAmount": null,
"totalAmount": {
"total": "0",
"balance": "0",
"used": "61511340",
"over": "0",
"title": "",
"showField": "1",
"link": null,
"linkType": null
},
"flowRegion": {
"title": "达量降速",
"subTitle": "剩余",
"subTitleHh": "31.34GB",
},
"flowList": [
{
"title": "国内通用流量(达量降速)",
"subTitle": "",
"barPercent": "22",
"barRightCount": "1个",
"leftTitle": "已用",
"leftTitleHh": "8.66GB",
"rightTitle": "达40GB降速",
"rightTitleHh": "",
"rightTitleEnd": ""
},
{
"title": "国内通用流量(非畅享)",
"subTitle": "",
"barPercent": "100",
"barRightCount": "5个",
"leftTitle": "已用",
"leftTitleHh": "50GB",
"rightTitle": "剩余",
"rightTitleHh": "0KB",
"rightTitleEnd": "/50GB"
}
],
|
|