@ -32,7 +32,6 @@ func InitialConfig() Config {
}
type Config struct {
Port string
Quality string
UserName string
PassWord string
@ -42,7 +41,6 @@ type Config struct {
func getConfig() Config {
var config Config
config.Port = viper.GetString("server.port")
config.Quality = viper.GetString("img.quality")
config.UserName = viper.GetString("info.username")
config.PassWord = viper.GetString("info.password")
@ -53,8 +53,8 @@ func main() {
// 监听每日申报
go chanHandler()
log.Printf("[INFO] Service Listener Port At %v...", global.GLO_CONFIG.Port)
err := http.ListenAndServe(":"+global.GLO_CONFIG.Port, mux)
log.Printf("[INFO] Service Listener Port At 7201...")
err := http.ListenAndServe(":7201", mux)
if err != nil {
log.Fatalf("[FATAL] Start Server Error %s", err)