This commit is contained in:
2024-12-30 19:09:10 +08:00
parent 7309ef704d
commit e96f8a5c8d
4 changed files with 10 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"github.com/pkg/errors"
"io"
"log"
"net/http"
"qnc-server/app/user/cmd/api/internal/config"
"qnc-server/pkg/lzkit/crypto"
@@ -98,6 +99,7 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r
return nil, DecryptErr
}
return decryptedData, errors.New(westDexResp.Message)
log.Println(string(decryptedData))
}
if westDexResp.Data == "" {
return nil, errors.New(westDexResp.Message)
@@ -108,6 +110,8 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r
return nil, DecryptErr
}
// 输出解密后的数据
log.Println(string(decryptedData))
return decryptedData, nil
}