-
Notifications
You must be signed in to change notification settings - Fork 1
/
assets.js
61 lines (50 loc) · 1.35 KB
/
assets.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
var assets=[
{
title: '搜房网',
url: 'http://passport.soufun.com/ajax/ajaxmobilecode_v3.aspx',
method: 'GET',
parameters: {
mobile: '?'
},
timeout:'2000'
},
{
title: '阿里云',
url: 'https://account.aliyun.com/register/sendSms.htm',
method: 'GET',
parameters: {
mobile: '?',
_csrf_token: '_sms_csrf_token_1429825086699186'
}
},
{
title: '嗨哟网',
url: 'http://www.hiiyou.com/user/sendverify',
method: 'GET',
parameters: {
user_mobile: '?',
}
},
{
title: 'gmail',
url: 'https://accounts.google.com/IdvChallenge?idvContinueHandler=LOGIN',
method: 'POST',
headers:{
'Content-Type':'application/x-www-form-urlencoded; charset=utf-8'
},
parameters:{
idvType: 'SMS',
MobileCountry: 'CN',
PhoneType:'MOBILE',
MobileNumber: function(number){
number+='';
var re=/(\d{3})(\d{4})(\d{4})/;
if(re.test(number)){
return RegExp.$1+'+'+RegExp.$2+'+'+RegExp.$3;
}
return number;
}
}
}
]
exports.assets=assets;