Guangzhou College of Technology and Business portal login daemon
I want you to be able to tell what it is at a glance.
There are two different variants in windows. gzgsp meaning no terminal display. gzgspd mean daemon with terminal display.
--config: Specify configuration file path.--daemon: Run as daemon.
The configuration file uses JSON format, as shown below:
{
"log_level": 0,
"log_path": "daemon.log",
"instance": [
{
"username": "13412345678",
"password": "123456",
"interface": "",
"keep_alive": 5,
"keep_alive_link": "http://3.3.3.3",
"retry_max": 3,
"retry_time": 5
}
]
}and its struct is defined as follows:
type Config struct {
LogLevel int `json:"log_level"` // Log level (https://go.dev/src/log/slog/level.go)
LogPath string `json:"log_path"` // Log path
Instance []ConfigInstance `json:"instance"` // Instances
}
type ConfigInstance struct {
Username string `json:"username"` // User name
Password string `json:"password"` // Password
Interface string `json:"interface"` // Network interface for sending HTTP data (Empty: Automatically detect)
UserAgent string `json:"user_agent"` // User agent for sending HTTP data (Empty: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36")
KeepAlive int `json:"keep_alive"` // Interval for sending keep-alive
KAliveLink string `json:"keep_alive_link"` // keep-alive link (Empty: "http://3.3.3.3")
RetryMax int `json:"retry_max"` // Max retries. If exceeded, wait 10 minutes.
RetryTime int `json:"retry_time"` // Retry interval
}