### 資料庫結構 資料表 z_onlineshop id(主鍵) charid(玩家角色ID) needitem(需要道具) price(單價) sellitem(販售道具) quantity(上架數量) date(日期) ### 系統架構 #### 上架 可供玩家(charid)上架指定道具商品 可設定要販售的是楓點(4310351)楓幣、靈夢代幣(needitem) 設定上架道具(item) 設定上架數量(quantity) 設定單價(price) 更新資料庫 onlineshop id charid quantity needitem quantity price date(now) #### 下架 刪除該玩家chaid對應目前資料庫的商品列表 並且退還剩餘道具 item,quantity #### 查詢 查詢z_onlineshop用group by查item 先選擇要購買的道具 在查詢對應 #### 購買 取出z_onlineshop內所有資料
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up