[이민권] linkinfo 이슈 수정
This commit is contained in:
@ -542,6 +542,13 @@ func (sh *serviceDescription) linkinfo(w http.ResponseWriter, r *http.Request) {
|
|||||||
// fmt.Println(authInfo.Uid)
|
// fmt.Println(authInfo.Uid)
|
||||||
// fmt.Println("=================")
|
// fmt.Println("=================")
|
||||||
|
|
||||||
|
sType, sId, err := sh.getProviderInfo(sType, sId)
|
||||||
|
if err != nil {
|
||||||
|
logger.Error("getProviderInfo failed :", err)
|
||||||
|
w.WriteHeader(http.StatusBadRequest)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
//if oldAuth.Token != oldToken || oldAuth.Uid != oldId || oldAuth.Platform != oldType {
|
//if oldAuth.Token != oldToken || oldAuth.Uid != oldId || oldAuth.Platform != oldType {
|
||||||
if authInfo.Uid != sId || authInfo.Platform != sType {
|
if authInfo.Uid != sId || authInfo.Platform != sType {
|
||||||
logger.Println("linkinfo failed. session key is not correct :", *authInfo, queryvals)
|
logger.Println("linkinfo failed. session key is not correct :", *authInfo, queryvals)
|
||||||
|
|||||||
Reference in New Issue
Block a user