forked from saipo/astrbot_plugin_dajiao
修改新用户bug
This commit is contained in:
parent
55136d0380
commit
95728b03ac
4
back.py
4
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user