-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconstant.go
31 lines (29 loc) · 1.6 KB
/
constant.go
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
package HupuApp
const (
DefaultTac = "tac.csv"
API_VERSION = "7.5.59"
HUPU_SALT = "HUPU_SALT_AKJfoiwer394Jeiow4u309"
// 接口
API_STATUS_INIT = "https://games.mobileapi.hupu.com/1/" + API_VERSION + "/status/init"
API_GET_GAMES = "https://games.mobileapi.hupu.com/1/" + API_VERSION + "/%s/getGames"
API_GET_PLAY_BY_PLAY = "https://games.mobileapi.hupu.com/1/" + API_VERSION + "/room/getPlaybyplay"
// 直播接口
API_SCHEDULE_LIST = "https://games.mobileapi.hupu.com/1/" + API_VERSION + "/basketballapi/scheduleList"
API_SINGLE_MATCH = "https://games.mobileapi.hupu.com/1/" + API_VERSION + "/basketballapi/singleMatch"
API_LIVE_QUERY_LIVE_ACTIVITY_KEY = "https://live-api.liangle.com/1/" + API_VERSION + "/live/queryLiveActivityKey"
API_LIVE_QUERY_LIVE_TEXT_LIST = "https://live-api.liangle.com/1/" + API_VERSION + "/live/queryLiveTextList"
// 一些设置
LIVE_HEART_BEAT_PERIOD = 5 // 直播心跳间隔时间
LOG_FILE = "hupu.log"
)
var (
ANDROID_USER_AGENT = []string{
"Mozilla/5.0 (Android 5.1.1; Tablet; rv:48.0) Gecko/48.0 Firefox/48.0",
"Mozilla/5.0 (Linux; Android 4.4.2; Phoenix 2 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2768.59 Mobile Safari/537.36",
"Mozilla/5.0 (Android 4.4.4; Mobile; rv:46.0) Gecko/46.0 Firefox/46.0",
"Mozilla/5.0 (Linux; Android 6.0; 7045Y Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2755.4 Mobile Safari/537.36",
}
TAC_LIST = []string{
"35651900", "35666503", "91054200", "35537803", "44831527", "86489400", "35084240", "13004008", "35103090", "35332802",
}
)