diff --git a/service/common/mq_config.go b/service/common/mq_config.go index 35a68e2..472bdcd 100644 --- a/service/common/mq_config.go +++ b/service/common/mq_config.go @@ -12,7 +12,7 @@ package common import "net" const ( - mqHost = "139.196.82.110" + mqHost = "127.0.0.1" mqPort = "61613" MqOrderQuery = "order_query" diff --git a/service/conf/config.go b/service/conf/config.go index d168448..48d02b0 100644 --- a/service/conf/config.go +++ b/service/conf/config.go @@ -10,9 +10,9 @@ package conf const ( - DB_HOST = "localhost" + DB_HOST = "rm-z7fchopj.mysql.rds.aliyuncs.com" DB_PORT = "3306" - DB_USER = "root" - DB_PASSWORD = "" - DB_BASE = "pay_pay" + DB_USER = "dongfeng" + DB_PASSWORD = "UekR24BwfKx&^E5bcq43f" + DB_BASE = "dongfeng" ) diff --git a/service/controller/init.go b/service/controller/init.go index 9a6e916..4fd856d 100644 --- a/service/controller/init.go +++ b/service/controller/init.go @@ -10,8 +10,8 @@ package controller import ( - "github.com/astaxie/beego/logs" "dongfeng-pay/service/common" + "github.com/astaxie/beego/logs" ) var registerSupplier = make(map[string]PayInterface) diff --git a/service/message_queue/active_mq.go b/service/message_queue/active_mq.go index d552ec2..3a4442f 100644 --- a/service/message_queue/active_mq.go +++ b/service/message_queue/active_mq.go @@ -10,9 +10,9 @@ package message_queue import ( + "dongfeng-pay/service/common" "github.com/astaxie/beego/logs" "github.com/go-stomp/stomp" - "dongfeng-pay/service/common" "os" "time" ) diff --git a/service/service_init/init_all.go b/service/service_init/init_all.go index de48b11..01eb898 100644 --- a/service/service_init/init_all.go +++ b/service/service_init/init_all.go @@ -10,9 +10,9 @@ package service_init import ( + "dongfeng-pay/service/controller" _ "dongfeng-pay/service/message_queue" "dongfeng-pay/service/models" - "dongfeng-pay/service/controller" ) func InitAll() {