aa
This commit is contained in:
@@ -2,8 +2,11 @@ package jd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
||||||
@@ -117,6 +120,7 @@ func OnTokenChange(values url.Values) {
|
|||||||
voc2 := &model.VendorOrgCode{
|
voc2 := &model.VendorOrgCode{
|
||||||
Comment: voc.Comment,
|
Comment: voc.Comment,
|
||||||
VendorOrgCode: codeInfo.VenderID,
|
VendorOrgCode: codeInfo.VenderID,
|
||||||
|
VendorType: model.VendorOrgTypePlatform,
|
||||||
}
|
}
|
||||||
dao.WrapAddIDCULDEntity(voc2, "jxadmin")
|
dao.WrapAddIDCULDEntity(voc2, "jxadmin")
|
||||||
if err := dao.CreateEntity(db, voc2); err == nil {
|
if err := dao.CreateEntity(db, voc2); err == nil {
|
||||||
@@ -129,9 +133,12 @@ func OnTokenChange(values url.Values) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tokenInfo := &JdToken{}
|
tokenInfo := &JdToken{}
|
||||||
|
fmt.Println("11111111111111111111", values)
|
||||||
if dataStr := values.Get("token"); dataStr != "" {
|
if dataStr := values.Get("token"); dataStr != "" {
|
||||||
json.Unmarshal([]byte(dataStr), &tokenInfo)
|
json.Unmarshal([]byte(dataStr), &tokenInfo)
|
||||||
}
|
}
|
||||||
|
fmt.Println("11111111111111111111", values.Get("token"))
|
||||||
|
fmt.Println("11111111111111111111", utils.Format4Output(tokenInfo, false))
|
||||||
if tokenInfo == nil {
|
if tokenInfo == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user