优化项目架构
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
manualID = "G4KA4Qnz4LDp7"
|
||||
roomID = "9263298"
|
||||
actAlias = "20260120QYOOB"
|
||||
|
||||
baseURL = "https://www.douyu.com"
|
||||
shopReferer = "https://www.douyu.com/pages/live-peace-handbook/web/shop?ditchname=pass0&roomId=" + roomID
|
||||
defaultTimeAPI = baseURL + "/wgapi/ordnc/activity/peace/storedetail?manualID=" + manualID + "&commodityID=20260120QYOOB_bag274&rid=" + roomID
|
||||
storeHomeURL = baseURL + "/wgapi/ordnc/activity/peace/storehome?manualID=" + manualID + "&rid=" + roomID
|
||||
csrfURL = baseURL + "/japi/carnival/nc/common/generateCsrf"
|
||||
batchLimitURL = baseURL + "/wgapi/ordnc/activity/peace/batchExchangeLimit"
|
||||
preExchangeURL = baseURL + "/wgapi/ordnc/activity/peace/preExchange"
|
||||
exchangeURL = baseURL + "/wgapi/ordnc/activity/peace/exchange"
|
||||
bindInfoURL = baseURL + "/japi/carnivalApi/v2/tencent/bindInfo?actAlias=" + actAlias
|
||||
scoreURL = baseURL + "/japi/oms/web/peace/credit/balance"
|
||||
userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36"
|
||||
defaultAttempts = 1
|
||||
defaultConcurrency = 80
|
||||
productCacheTTL = 30 * time.Second
|
||||
|
||||
serverAddr = "127.0.0.1:2169"
|
||||
staticDir = "./static"
|
||||
defaultConfigFile = "config.json"
|
||||
defaultAccountFile = "user.txt"
|
||||
defaultLogDir = "logs"
|
||||
defaultSuccessDir = "success_images"
|
||||
)
|
||||
|
||||
var cst = time.FixedZone("CST", 8*3600)
|
||||
Reference in New Issue
Block a user