Created
September 11, 2020 08:25
-
-
Save makeding/e5a08b12e0aaba3d59cc9db1a6c19b69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rqtest = (method, url, data, options) => { | |
uatest(options.ua) | |
} | |
let uatest = (ua = false) => { | |
console.log(ua) | |
} | |
rqtest('POST', 'xxx', { | |
type: 111 | |
}, { | |
crypto: 'weapi', | |
//ua: 'mobile', | |
cookie: 'cookie123', | |
proxy: 'proxy123', | |
realIP: 'realip123', | |
}) | |
rqtest('POST', 'xxx', { | |
type: 111 | |
}, { | |
crypto: 'weapi', | |
ua: 'mobile', | |
cookie: 'cookie123', | |
proxy: 'proxy123', | |
realIP: 'realip123', | |
}) | |
rqtest('POST', 'xxx', { | |
type: 111 | |
}, { | |
crypto: 'weapi', | |
ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.30 Safari/537.36', | |
cookie: 'cookie123', | |
proxy: 'proxy123', | |
realIP: 'realip123', | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
运行结果