liuxiaolong
2020-06-24 5d77eb2e2eb23a132f5731758463b4789e692c0d
service/msgPush.go
@@ -114,14 +114,10 @@
}
func RefreshToken() (*TokenResult,error) {
   //appId := beego.AppConfig.String("pushAppId")
   //appKey := beego.AppConfig.String("pushAppKey")
   //masterSecret := beego.AppConfig.String("pushMasterSecret")
   //baseUrl := beego.AppConfig.String("pushBaseUrl") + appId
   appId := "WU8KzZBaTwADIjTwaMSzW5"
   appKey := "9JLs4B1ZVkAVh93JXX3MP4"
   masterSecret := "IbSAe83ZoZAczhKSA3Bwj9"
   baseUrl := "https://restapi.getui.com/v2/"+appId
   appId := beego.AppConfig.String("pushAppId")
   appKey := beego.AppConfig.String("pushAppKey")
   masterSecret := beego.AppConfig.String("pushMasterSecret")
   baseUrl := beego.AppConfig.String("pushBaseUrl") + appId
   url := baseUrl +"/auth"
   timestamp := fmt.Sprintf("%v", time.Now().UnixNano() / 1e6)
   sign := util.Sha256(appKey + timestamp + masterSecret)