mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-20 13:43:58 +08:00
Initial commit: new history
This commit is contained in:
13
Scripts/amdc.js
Normal file
13
Scripts/amdc.js
Normal file
@ -0,0 +1,13 @@
|
||||
// 使用AMDC的APP有:咸鱼、淘宝、盒马、高德、菜鸟、飞猪
|
||||
var ua = $request.headers["User-Agent"] || $request.headers["user-agent"];
|
||||
|
||||
if (
|
||||
ua.indexOf("AMap") !== -1 ||
|
||||
ua.indexOf("Cainiao") !== -1 ||
|
||||
ua.indexOf("Moon") !== -1 ||
|
||||
ua.indexOf("%E9%A3%9E%E7%8C%AA%E6%97%85%E8%A1%8C") !== -1
|
||||
) {
|
||||
$done({body: ""});
|
||||
} else {
|
||||
$done({});
|
||||
}
|
||||
Reference in New Issue
Block a user