正在显示
3 个修改的文件
包含
10 行增加
和
10 行删除
@@ -21,11 +21,11 @@ func main() { | @@ -21,11 +21,11 @@ func main() { | ||
21 | //constant.DebugConfig() | 21 | //constant.DebugConfig() |
22 | 22 | ||
23 | //https | 23 | //https |
24 | - //beego.BConfig.Listen.EnableHTTPS = true | ||
25 | - //beego.BConfig.Listen.Graceful = true | ||
26 | - //beego.BConfig.Listen.HTTPSPort = 443 | ||
27 | - //beego.BConfig.Listen.HTTPSCertFile = "conf/_.fjmaimaimai.com_bundle.crt" | ||
28 | - //beego.BConfig.Listen.HTTPSKeyFile = "conf/fjmaimaimai.com_RSA.fjmaimaimai.com_RSA.key" | 24 | + beego.BConfig.Listen.EnableHTTPS = true |
25 | + beego.BConfig.Listen.Graceful = true | ||
26 | + beego.BConfig.Listen.HTTPSPort = 443 | ||
27 | + beego.BConfig.Listen.HTTPSCertFile = "conf/_.fjmaimaimai.com_bundle.crt" | ||
28 | + beego.BConfig.Listen.HTTPSKeyFile = "conf/fjmaimaimai.com_RSA.fjmaimaimai.com_RSA.key" | ||
29 | 29 | ||
30 | err := redis.Init(config.Redis{ | 30 | err := redis.Init(config.Redis{ |
31 | Addr: fmt.Sprintf("%v:%v", constant.REDIS_HOST, constant.REDIS_PORT), | 31 | Addr: fmt.Sprintf("%v:%v", constant.REDIS_HOST, constant.REDIS_PORT), |
@@ -4,9 +4,9 @@ import "fmt" | @@ -4,9 +4,9 @@ import "fmt" | ||
4 | 4 | ||
5 | var MYSQL_DB_NAME = "mmm_open_dev" | 5 | var MYSQL_DB_NAME = "mmm_open_dev" |
6 | var MYSQL_USER = "root" | 6 | var MYSQL_USER = "root" |
7 | -var MYSQL_PASSWORD = "sutianxia2018" | ||
8 | -var MYSQL_HOST = "101.37.68.23" | ||
9 | -var MYSQL_PORT = "3306" | 7 | +var MYSQL_PASSWORD = "eagle1010" |
8 | +var MYSQL_HOST = "114.55.200.59" | ||
9 | +var MYSQL_PORT = "23306" | ||
10 | var MYSQL_DATA_SOURCE = "" | 10 | var MYSQL_DATA_SOURCE = "" |
11 | var MYSQL_MAX_IDLE = 100 | 11 | var MYSQL_MAX_IDLE = 100 |
12 | var MYSQL_MAX_OPEN = 100 | 12 | var MYSQL_MAX_OPEN = 100 |
@@ -173,8 +173,8 @@ func channelIOS(m *MapData, option *push.Options) { | @@ -173,8 +173,8 @@ func channelIOS(m *MapData, option *push.Options) { | ||
173 | 173 | ||
174 | alert := m.GetFiledMap("push_channel.ios.aps.alert") | 174 | alert := m.GetFiledMap("push_channel.ios.aps.alert") |
175 | //TODO:去掉这个ios通知栏只有内容行,没有标题行,如果后期需要显示这个 需要ext里面扩展字段用来控制是否显示标题 | 175 | //TODO:去掉这个ios通知栏只有内容行,没有标题行,如果后期需要显示这个 需要ext里面扩展字段用来控制是否显示标题 |
176 | - //m.SetFieldMap(alert, "title", option.Title) | ||
177 | - m.SetFieldMap(alert, "body", option.Content) | 176 | + m.SetFieldMap(alert, "title", option.Title) |
177 | + //m.SetFieldMap(alert, "body", option.Content) | ||
178 | m.AddFiled("push_channel.ios.aps.content-available", 0) | 178 | m.AddFiled("push_channel.ios.aps.content-available", 0) |
179 | 179 | ||
180 | if v, ok := option.GetExt("sound"); ok && len(v.(string)) > 0 { | 180 | if v, ok := option.GetExt("sound"); ok && len(v.(string)) > 0 { |
-
请 注册 或 登录 后发表评论