Administrator
2024-01-03 bc5e3ca4157faded3bf5f4ec7663ca72a207d65f
third_data/kpl_api.py
@@ -69,6 +69,10 @@
        for r in results:
            if not r[18] and pid_info[1]:
                r[18] = pid_info[1]
            # 替换掉板块名称
            for i in range(len(r)):
                if type(r[i]) == str:
                    r[i] = kpl_util.filter_block(r[i])
        fresults.extend(results)
    return json.dumps({"errcode": 0, "list": fresults})
@@ -252,7 +256,5 @@
if __name__ == "__main__":
    data = f"Order=0&a=DailyLimitPerformance&st=20&apiv=w35&Type=4&c=HomeDingPan&PhoneOSNew=1&DeviceID=a38adabd-99ef-3116-8bb9-6d893c846e23&VerSion=5.13.0.0&Index=0&PidType={5}&"
    result = __base_request("https://apphq.longhuvip.com/w1/api/index.php", data=data)
    print(result)
    print(getLimitUpInfoNew())