标题:
[其他]
gog galaxy 无法登录psn的解决方法
[打印本页]
作者:
peacehorse
时间:
2023-6-20 21:36
标题:
gog galaxy 无法登录psn的解决方法
经常性无法登陆psn游戏库,通常是输入完用户名和密码后返回一个错误,看gog论坛找到的解决方法。无需翻墙
1、浏览器登录psn之后,输入网址
https://ca.account.sony.com/api/v1/ssocookie
获得npsso value
比如获得的文字是{"npsso":"5bM7NjAw2Q7f6sNcCblGPVCvQr6w6i8JfIrCE4laicg3lxZ88NTEElNHMhKf2V3a"}
2、打开C:\Users\<username\AppData\Local\GOG.com\Galaxy\plugins\installed\psn_<guid>\plugin.py 用文本编辑器编辑
3、找到原文是
async def authenticate(self, stored_credentials=None):
stored_npsso="5bM7NjAw2Q7f6sNcCblGPVCvQr6w6i8JfIrCE4laicg3lxZ88NTEElNHMhKf2V3a"
stored_cookies = stored_credentials.get("cookies") if stored_credentials else None
if not stored_cookies:
return NextStep("web_session", AUTH_PARAMS)
替换为
async def authenticate(self, stored_credentials=None):
stored_npsso="5bM7NjAw2Q7f6sNcCblGPVCvQr6w6i8JfIrCE4laicg3lxZ88NTEElNHMhKf2V3a"
stored_cookies = stored_credentials.get("cookies") if stored_credentials else None
if not stored_cookies:
stored_cookies = {"npsso": "5bM7NjAw2Q7f6sNcCblGPVCvQr6w6i8JfIrCE4laicg3lxZ88NTEElNHMhKf2V3a"}
不要改变其它位置的空格和文本
[
本帖最后由 peacehorse 于 2023-6-20 21:38 编辑
]
欢迎光临 TGFC Lifestyle (http://tgfcer.com/)
Powered by Discuz! 6.0.0