From 5d77eb2e2eb23a132f5731758463b4789e692c0d Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 24 六月 2020 14:01:20 +0800 Subject: [PATCH] update unipush appkey secrect --- service/msgPush.go | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/service/msgPush.go b/service/msgPush.go index 2a29457..3f3c4ce 100644 --- a/service/msgPush.go +++ b/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) -- Gitblit v1.8.0