猫史档案馆


纠错awa

用户:上知天文上知天文查看:0 回复:3 评论:0 创建时间:2024-01-19T21:16:04


//SQL (asyncfunction(){ awaitdb.sql`CREATETABLEIFNOTEXISTSplayerdata( userKeyCHAR(16)PRIMARYKEYUNIQUENOTNULL,--识别码 moneyINTNOTNULL,--钱 tankTEXTNOTNULL--物品 )` }()) asyncfunctionupdate(entity){ awaitdb.sql`UPDATEplayerdataSET money=${entity.money}, tank=${JSON.stringify(entity.tank)} WHEREuserKey=${entity.player.userKey}` } asyncfunctiondel(entity){ awaitdb.sql`DELETEFROMplayerdataWHEREuserKey=${entity.player.userKey}` }   Error:sqlerror:Error:storagedisabled https://dao3.fun/edit/7319388e83cf5df1ff68


回复

上一页1 页 / 共 1下一页
上知天文上知天文

//SQL (async function() {     await db.sql`CREATE TABLE IF NOT EXISTS playerdata (         userKey CHAR(16) PRIMARY KEY UNIQUE NOT NULL,--识别码         money INT NOT NULL,--钱         tank TEXT NOT NULL--物品     )` }()) async function update(entity) {     await db.sql`UPDATE playerdata SET         money=${entity.money},         tank=${JSON.stringify(entity.tank)}     WHERE userKey=${entity.player.userKey}` } async function del(entity) {     await db.sql`DELETE FROM playerdata WHERE userKey=${entity.player.userKey}` }

点赞0


评论


上知天文上知天文

https://dao3.fun/edit/7319388e83cf5df1ff68

点赞0


评论


上知天文上知天文

https://dao3.fun/edit/7319388e83cf5df1ff68?p=3b557789836d4e54a6555751334bd917

点赞0


评论