Peng-YM / QuanX

Scripts for QX, Loon, Surge, and ShadowRocket!
GNU General Public License v3.0
1.6k stars 177 forks source link

Surge issues in new OpenAPI #81

Closed NobyDa closed 2 years ago

NobyDa commented 2 years ago

$surge这个API在Surge环境下很特殊,如果没有指定内部属性它将直接返回undefined,无法用于判断环境;且该API已废弃,建议修改为$utils

https://github.com/Peng-YM/QuanX/blob/3dac956312775881a60260b9cc5e7394f14a5f77/Tools/OpenAPI/API.js#L12

Peng-YM commented 2 years ago

感谢大佬告知,好久没有看 change log 了。能不能用 $utils$httpClient 判断呢?

NobyDa commented 2 years ago

感谢大佬告知,好久没有看 change log 了。能不能用 $utils$httpClient 判断呢?

倒是可以,但一个$utils足够了,目前除surge外没有观察到其他app使用。