|
楼主 |
发表于 2024-10-25 23:58:36
|
显示全部楼层
四川省成都市
像这种格式的没有VIP的就南面和北面直接比较
{"btn_status":1,"btn_text":"请选择","code":1,"data":[{"usable_count":1,"max_price":"150.00","min_price":"150.00","region":1,"list":[{"usable_count":"1","price":"150.00","estate":4,"name":"104","id":4},{"usable_count":48,"price":"150.00","estate":8,"name":"108","id":8},{"usable_count":36,"price":"180.00","estate":9,"name":"109","id":9},{"usable_count":43,"price":"180.00","estate":10,"name":"110","id":10}],"name":"北面"},{"usable_count":1,"max_price":"100.00","min_price":"100.00","region":6,"list":[{"usable_count":"1","price":"100.00","estate":5,"name":"505","id":5},{"usable_count":37,"price":"100.00","estate":6,"name":"506","id":6},{"usable_count":55,"price":"100.00","estate":7,"name":"507","id":7},{"usable_count":62,"price":"120.00","estate":8,"name":"508","id":8}],"name":"南面"}],"msg":"获取成功","max_num":2}
选出usable_count值最大的一组
这种就要排除外层的VIP再比较南面和北面里面的组
|
|