From 314d69b49ee411123f295aacbc9e118fa0e3d3c9 Mon Sep 17 00:00:00 2001 From: kongyuebin Date: Tue, 17 Nov 2020 12:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B6=88=E6=81=AF=E9=98=9F?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/common/mq_config.go | 2 +- service/conf/config.go | 8 ++++---- service/controller/init.go | 2 +- service/message_queue/active_mq.go | 2 +- service/service_init/init_all.go | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) 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() {