From c7c8da46ed97642fe5b09ba759b1bda0e841aa93 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Fri, 18 Oct 2024 13:50:50 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=AA=E3=83=B3?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=83=87=E3=83=90=E3=82=A4=E3=82=B9=E3=81=8C?= =?UTF-8?q?0=E7=95=AA=E3=81=AB=E3=81=AA=E3=82=8B=E3=83=90=E3=82=B0?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dislocker_auth.py b/dislocker_auth.py index 3ae6611..a473650 100644 --- a/dislocker_auth.py +++ b/dislocker_auth.py @@ -393,7 +393,7 @@ def verify(): if pc_auth["result"] == 0: auth.delete(pc_number) - auth.device_use_register(pc_number=pc_number, keyboard_number=pc_auth["output_dict"]["keyboard_number"], mouse_number=pc_auth["output_dict"]["mouse_number"]) + #auth.device_use_register(pc_number=pc_number, keyboard_number=pc_auth["output_dict"]["keyboard_number"], mouse_number=pc_auth["output_dict"]["mouse_number"]) print(str(pc_number) + "の認証処理は成功しました.") return jsonify({'message': 'ok'}), 200 elif pc_auth["result"] == 1: From 368d51d5f78db938b898a8ed14d460519dd104af Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Fri, 18 Oct 2024 13:57:23 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=AD=E3=83=BC=E3=83=9C=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=80=81=E3=83=9E=E3=82=A6=E3=82=B9=E3=81=A8=E3=82=82?= =?UTF-8?q?=E3=81=AB=E8=87=AA=E5=89=8D=E3=81=AE=E3=81=A8=E3=81=8D=E3=81=AE?= =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dislocker.py b/dislocker.py index 7d5e140..dda688a 100644 --- a/dislocker.py +++ b/dislocker.py @@ -1252,6 +1252,9 @@ async def on_button(interaction: discord.Interaction): keyboard_not_register_button = discord.ui.Button(style=discord.ButtonStyle.primary, label="キーボードは自前", custom_id=f"keyboardregister_{str(pc_number)}_0") keyboard_register_view.add_item(keyboard_not_register_button) + keyboard_mouse_not_register_button = discord.ui.Button(style=discord.ButtonStyle.primary, label="キーボード、マウスとも自前", custom_id=f"mouseregister_{str(pc_number)}_0_0") + keyboard_register_view.add_item(keyboard_mouse_not_register_button) + await interaction.response.send_message(f"# :keyboard: キーボードのデバイス番号を選んでください!\n>>> # PC番号 | {str(pc_number)}", view=keyboard_register_view, ephemeral=True) elif custom_id_split[0] == "keyboardregister":