xdtianyu / CallerInfo

来电信息 - 一个获取号码归属地和其他信息(诈骗、骚扰等)的开源 Android 应用
Other
1.34k stars 201 forks source link

Cannot display spam-count while using custom API. #79

Open DiruSec opened 6 years ago

DiruSec commented 6 years ago

JSON Data:

{  
   "reason":"查询成功",
   "error_code":0,
   "result":{  
      "rpt_cnt":"214",
      "province":"",
      "city":"江苏 南京 U.友(爱施德)",
      "rpt_type":"响一声",
      "phone":"17095568061",
      "name":"响一声",
      "provider":"",
      "info":"",
      "company":""
   }
}

Marked 响一声 as orange and 诈骗电话 as red, however, spam-count does not display on call history. Call type got an extra space as well. menu

I have erased all numbers from screenshot, the call in number displayed normally without any problem. Apologize if it makes you confused.

The following JSON data does not work as well. (Added iszhapian countDesc for emulate juhe API format)

{
 "reason": "查询成功",
 "result": {
  "rpt_type": "骚扰电话",
  "city": "湖北 咸宁 联通",
  "rpt_cnt": "17",
  "iszhapian": 1,
  "phone": "15629945950",
  "info": "",
  "countDesc": "此号码近期被<b>17</b>位<a class=\"mohe-sjws\" href=\" http://shouji.360.cn/\" target=\"_blank\">360手机卫士</a>用户标记,疑似为骚扰电话!",
  "company": "",
  "name": "骚扰电话",
  "provider": "",
  "province": ""
 },
 "error_code": 0
}
xdtianyu commented 6 years ago

Thamks for your report, I will check this bug later.