D3adEr1c
D3adEr1c
https://github.com/bs-community/blessing-skin-plugins/issues/186#issuecomment-1824660226
它 post("/mojang/update-uuid") 后 call AccountController@uuid ``` public function uuid() { $uuid = MojangVerification::where('user_id', auth()->id())->value('uuid'); try{ $response = Http::withOptions(['verify' => CaBundle::getSystemCaRootBundlePath()]) ->get("https://api.mojang.com/user/profiles/$uuid/names"); $name = $response->json()[0]['name']; DB::table('uuid')->updateOrInsert(['name' => $name], ['uuid' => $uuid]);...
https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/3285#issuecomment-1379809163
https://github.com/MaaAssistantArknights/MaaAssistantArknights/commit/5c7372c6db1ee2265ade72e4633d459f720560ab Close
> 我的已经可以访问API了,但是又出现一个问题,绑定正版用户后更新uuid显示更新uuid失败,没有任何日志信息,我看了下正版验证插件,里面只有一个update-uuid.js`!function(e){"use strict";var t;null===(t=document.querySelector("#update-uuid"))||void 0===t||t.addEventListener("click",async()=>{const{code:t,message:s}=await e.fetch.post("/mojang/update-uuid"),{toast:c}=e.notify;0===t?c.success(s):c.error(s)})}(blessing);�`,我不知道是否是这个js的问题,请问有哪位大佬遇见过这个问题吗,请问是怎么解决的 也遇到这个问题了 这个接口貌似无了 如果只是获取最新用户名的话,感觉可以AccountController.php改用这个api:```https://sessionserver.mojang.com/session/minecraft/profile/``` Mojang Api 参考:```https://geekdaxue.co/read/Minecraft-doc-zh/Mojang_API.md```