[이민권] linkinfo 이슈 수정

This commit is contained in:
2023-08-23 18:46:23 +09:00
parent 869fa48d74
commit 1db22730aa

View File

@ -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)