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

---
 conf/app.conf      |   11 +++++------
 service/msgPush.go |   12 ++++--------
 2 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/conf/app.conf b/conf/app.conf
index 23abe9b..0f511aa 100644
--- a/conf/app.conf
+++ b/conf/app.conf
@@ -10,10 +10,9 @@
 latestVersion = 1.0.0
 latestUrl =
 juheweihaokey = 8c0efc4439080ef6c6aa2c29688c9550
-pushAppId = WU8KzZBaTwADIjTwaMSzW5
-pushAppKey = 9JLs4B1ZVkAVh93JXX3MP4
-pushAppSecret =聽JuKr5y8IIC88WAWPicaSK3
-pushMasterSecret = IbSAe83ZoZAczhKSA3Bwj9
-pushPackageName = uni.UNI359F489
-pushSignature = BA:AD:09:3A:82:82:9F:B4:32:A7:B2:8C:B4:CC:F0:E9:F3:7D:AE:58
+pushAppId = WfOtCAmf0w6jS3B59V0mb5
+pushAppKey = hVBAHDe85F9ZviAUYknxb4
+pushAppSecret =聽gui4KFqXDv8LWKR57NKfS5
+pushMasterSecret = vFiErCTBqqAcufPzB0Tl45
+pushPackageName = uni.UNIEDF0B5C
 pushBaseUrl = https://restapi.getui.com/v2/
\ No newline at end of file
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