From 95728b03acc6fbfe6e55a7f823121033287150ef Mon Sep 17 00:00:00 2001 From: saipo Date: Tue, 6 May 2025 20:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E7=94=A8=E6=88=B7bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back.py b/back.py index 8f775a2..458bf41 100644 --- a/back.py +++ b/back.py @@ -59,8 +59,8 @@ def insertUser(openid): ,charset='utf8' ) cur = conn.cursor() - sql = "INSERT INTO dajiaouser (openid,nameid) VALUES (%s,%s)" - cur.execute(sql, (openid,"小jb")) + sql = "INSERT INTO dajiaouser (openid,nameid,baglist) VALUES (%s,%s,%s)ß" + cur.execute(sql, (openid,"小jb","{"baglist":[{"id":1,"num":1}]}")) conn.commit() cur.close() conn.close()