Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop
This commit is contained in:
@@ -7,7 +7,9 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/business/model/legacymodel"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/delivery/fn"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego/client/orm"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
@@ -96,10 +98,14 @@ func (c *FnController) FnToken() {
|
||||
}
|
||||
|
||||
db := dao.GetDB()
|
||||
|
||||
curConfig := &legacymodel.Config{
|
||||
Thirdparty: "fn",
|
||||
}
|
||||
if err = dao.GetEntity(db, curConfig); err != nil {
|
||||
if err = orm.NewOrm().Read(curConfig, "Thirdparty"); err != nil {
|
||||
globals.SugarLogger.Errorf("RefreshFnToken RefreshToken failed with error:%v", err)
|
||||
}
|
||||
if err != nil {
|
||||
c.Data["json"] = &fnpsapi.SignatureIsNotOk
|
||||
c.ServeJSON()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user