forked from hkmujj/regPro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testUrl.js
28 lines (25 loc) · 1 KB
/
testUrl.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Created by yanqing on 2017/9/18.
*/
var request = require("request");
// const requestUrl = function (url , phone){
// return new Promise(function (resolve, reject) {
// request(url["url"] + phone, function (error, response, body) {
// console.log(body)
// // if (!error && JSON.parse(body)[url.infoCheckField] === url["validMessage"]) {
// // var rM = url["websiteInfo"]
// // resolve(rM)
// // }else{
// // resolve({})
// // }
// })
// })
// }
request('http://passport.ziroom.com/api/index.php?r=user/verify-account&phone=15800984101', function (error, response, body) {
console.log("body", body)
})
// request('http://www.google.com', function (error, response, body) {
// console.log('error:', error); // Print the error if one occurred
// console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
// console.log('body:', body); // Print the HTML for the Google homepage.
// });