您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
30 行
583 B
30 行
583 B
package common
|
|
|
|
import (
|
|
"github.com/Albert-Zhan/httpc"
|
|
"github.com/unknwon/goconfig"
|
|
)
|
|
|
|
const (
|
|
SoftName = "jd_seckill"
|
|
Version = "0.1.7"
|
|
DateTimeFormatStr = "2006-01-02 15:04:05"
|
|
DateFormatStr = "2006-01-02"
|
|
)
|
|
|
|
var Client *httpc.HttpClient
|
|
|
|
var CookieJar *httpc.CookieJar
|
|
|
|
var Config *goconfig.ConfigFile
|
|
|
|
var SeckillStatus chan bool
|
|
|
|
var (
|
|
winExecError = map[uint32]string{
|
|
0: "The system is out of memory or resources.",
|
|
2: "The .exe file is invalid.",
|
|
3: "The specified file was not found.",
|
|
11: "The specified path was not found.",
|
|
}
|
|
)
|