From 6b8851302683e6059eb9e3cb380c1de203d91be6 Mon Sep 17 00:00:00 2001 From: ULTRACOMBOS-DEV Date: Wed, 24 Sep 2025 13:00:38 +0800 Subject: [PATCH] update --- vite/src/pages/flow_free.jsx | 1 + vite/src/util/backend.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vite/src/pages/flow_free.jsx b/vite/src/pages/flow_free.jsx index c88389f..19c30ca 100644 --- a/vite/src/pages/flow_free.jsx +++ b/vite/src/pages/flow_free.jsx @@ -548,6 +548,7 @@ export function FreeFlow(){ let next=cue.nextcue; switch(cue.numpad_type){ case NUMPAD_TYPE.USERID: + console.log('set id', padInput); setUserId(()=>padInput); break; case NUMPAD_TYPE.CHOICE: diff --git a/vite/src/util/backend.js b/vite/src/util/backend.js index 2c8ce2a..6eb0b39 100644 --- a/vite/src/util/backend.js +++ b/vite/src/util/backend.js @@ -51,8 +51,8 @@ export async function writeToGoogleSheet(date, session, userId, password){ body: JSON.stringify({ "date":date, "session":session, - "userId":userId, - "password":password, + "userId":userId?.toString(), + "password":password?.toString(), "createdTime": new Date().toLocaleString() }) });