作者 yangfu

push ios title fix

... ... @@ -21,11 +21,11 @@ func main() {
//constant.DebugConfig()
//https
//beego.BConfig.Listen.EnableHTTPS = true
//beego.BConfig.Listen.Graceful = true
//beego.BConfig.Listen.HTTPSPort = 443
//beego.BConfig.Listen.HTTPSCertFile = "conf/_.fjmaimaimai.com_bundle.crt"
//beego.BConfig.Listen.HTTPSKeyFile = "conf/fjmaimaimai.com_RSA.fjmaimaimai.com_RSA.key"
beego.BConfig.Listen.EnableHTTPS = true
beego.BConfig.Listen.Graceful = true
beego.BConfig.Listen.HTTPSPort = 443
beego.BConfig.Listen.HTTPSCertFile = "conf/_.fjmaimaimai.com_bundle.crt"
beego.BConfig.Listen.HTTPSKeyFile = "conf/fjmaimaimai.com_RSA.fjmaimaimai.com_RSA.key"
err := redis.Init(config.Redis{
Addr: fmt.Sprintf("%v:%v", constant.REDIS_HOST, constant.REDIS_PORT),
... ...
... ... @@ -4,9 +4,9 @@ import "fmt"
var MYSQL_DB_NAME = "mmm_open_dev"
var MYSQL_USER = "root"
var MYSQL_PASSWORD = "sutianxia2018"
var MYSQL_HOST = "101.37.68.23"
var MYSQL_PORT = "3306"
var MYSQL_PASSWORD = "eagle1010"
var MYSQL_HOST = "114.55.200.59"
var MYSQL_PORT = "23306"
var MYSQL_DATA_SOURCE = ""
var MYSQL_MAX_IDLE = 100
var MYSQL_MAX_OPEN = 100
... ...
... ... @@ -173,8 +173,8 @@ func channelIOS(m *MapData, option *push.Options) {
alert := m.GetFiledMap("push_channel.ios.aps.alert")
//TODO:去掉这个ios通知栏只有内容行,没有标题行,如果后期需要显示这个 需要ext里面扩展字段用来控制是否显示标题
//m.SetFieldMap(alert, "title", option.Title)
m.SetFieldMap(alert, "body", option.Content)
m.SetFieldMap(alert, "title", option.Title)
//m.SetFieldMap(alert, "body", option.Content)
m.AddFiled("push_channel.ios.aps.content-available", 0)
if v, ok := option.GetExt("sound"); ok && len(v.(string)) > 0 {
... ...