授权码
This commit is contained in:
@@ -148,13 +148,14 @@ func RefreshFnToken() (err error) {
|
|||||||
//if globals.IsMainProductEnv() {
|
//if globals.IsMainProductEnv() {
|
||||||
globals.SugarLogger.Debugf("11====================111")
|
globals.SugarLogger.Debugf("11====================111")
|
||||||
var refeshToken string
|
var refeshToken string
|
||||||
//sql1 := `SELECT * FROM jxgy.config WHERE thirdparty = "fn"`
|
curConfig := &legacymodel.Config{
|
||||||
//curConfig := &legacymodel.Config{
|
Thirdparty: "fn",
|
||||||
// Thirdparty: "fn",
|
}
|
||||||
//}
|
if err := orm.NewOrm().Read(curConfig, "Thirdparty"); err != nil {
|
||||||
//dao.
|
globals.SugarLogger.Errorf("RefreshFnToken RefreshToken failed with error:%v", err)
|
||||||
//db := orm.NewOrm()
|
}
|
||||||
//db.Read(curConfig, "Thirdparty");
|
api.FnAPI.SetToken(curConfig.Token)
|
||||||
|
api.FnAPI.SetRefreshToken(curConfig.RefreshToken)
|
||||||
if tokenInfo, err := api.FnAPI.GetAccessToken(); err == nil {
|
if tokenInfo, err := api.FnAPI.GetAccessToken(); err == nil {
|
||||||
globals.SugarLogger.Debugf("RefreshFnToken tokenInfo:%s", utils.Format4Output(tokenInfo, true))
|
globals.SugarLogger.Debugf("RefreshFnToken tokenInfo:%s", utils.Format4Output(tokenInfo, true))
|
||||||
token = tokenInfo.BusinessDataObj.AccessToken
|
token = tokenInfo.BusinessDataObj.AccessToken
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ dadaSourceID = "73753"
|
|||||||
|
|
||||||
fnAppID = "6705486294797503379"
|
fnAppID = "6705486294797503379"
|
||||||
fnAppSecret = "c1e6c280-e618-4103-9d0a-673bc54fb22e"
|
fnAppSecret = "c1e6c280-e618-4103-9d0a-673bc54fb22e"
|
||||||
fnCode = "iCN2gIftF1Ia9nG7720nyn"
|
fnCode = "yZXjRvtv8daiIDjsGTb517"
|
||||||
fnMerchantId= "51658"
|
fnMerchantId= "51658"
|
||||||
fnCallbackURL = "http://callback.jxc4.com/fn/msg"
|
fnCallbackURL = "http://callback.jxc4.com/fn/msg"
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ pushMasterSecret= "dGZcR0XGGg7H5Pd7FR3n47"
|
|||||||
|
|
||||||
fnAppID = "6705486294797503379"
|
fnAppID = "6705486294797503379"
|
||||||
fnAppSecret = "c1e6c280-e618-4103-9d0a-673bc54fb22e"
|
fnAppSecret = "c1e6c280-e618-4103-9d0a-673bc54fb22e"
|
||||||
fnCode = "iCN2gIftF1Ia9nG7720nyn"
|
fnCode = "yZXjRvtv8daiIDjsGTb517"
|
||||||
fnMerchantId= "51658"
|
fnMerchantId= "51658"
|
||||||
fnCallbackURL = "http://callback.jxc4.com/fn/msg"
|
fnCallbackURL = "http://callback.jxc4.com/fn/msg"
|
||||||
|
|
||||||
@@ -396,6 +396,7 @@ jdShopAppSecret2 = "71e1061ac2f246f6ac27efb900edba12"
|
|||||||
fnAppID = "6a3e2073-1850-413b-9eb7-6c342ec36e1c"
|
fnAppID = "6a3e2073-1850-413b-9eb7-6c342ec36e1c"
|
||||||
fnAppSecret = "a8248088-a742-4c33-a0db-03aeae00ca7d"
|
fnAppSecret = "a8248088-a742-4c33-a0db-03aeae00ca7d"
|
||||||
fnMerchantId = "51658"
|
fnMerchantId = "51658"
|
||||||
|
fnCode = "yZXjRvtv8daiIDjsGTb517"
|
||||||
fnCallbackURL = "http://callback-jxgy.jxc4.com/fn/msg"
|
fnCallbackURL = "http://callback-jxgy.jxc4.com/fn/msg"
|
||||||
|
|
||||||
jxPrintAppID = "1000"
|
jxPrintAppID = "1000"
|
||||||
@@ -571,7 +572,7 @@ pushMasterSecret= "dGZcR0XGGg7H5Pd7FR3n47"
|
|||||||
|
|
||||||
fnAppID = "6705486294797503379"
|
fnAppID = "6705486294797503379"
|
||||||
fnAppSecret = "c1e6c280-e618-4103-9d0a-673bc54fb22e"
|
fnAppSecret = "c1e6c280-e618-4103-9d0a-673bc54fb22e"
|
||||||
fnCode = "iCN2gIftF1Ia9nG7720nyn"
|
fnCode = "yZXjRvtv8daiIDjsGTb517"
|
||||||
fnMerchantId= "51658"
|
fnMerchantId= "51658"
|
||||||
fnCallbackURL = "http://callback.jxc4.com/fn/msg"
|
fnCallbackURL = "http://callback.jxc4.com/fn/msg"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user