From ba6668f1440f85642c692730907cc7d1ba52ff7e Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Sun, 16 Oct 2022 11:46:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=BA=97=E9=81=93?= =?UTF-8?q?=E5=85=B7icon=E5=8F=AF=E4=BB=A5=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ models/goods_info.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b41bdd6..c0bdb93d 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能 ## 更新 +### 2022/10/16 + +* 修改商店道具icon可以为空 + ### 2022/10/15 * nonebot2版本更新为rc1 diff --git a/models/goods_info.py b/models/goods_info.py index f2cfccaf..64926be4 100644 --- a/models/goods_info.py +++ b/models/goods_info.py @@ -17,7 +17,7 @@ class GoodsInfo(db.Model): db.JSON(), nullable=False, default={} ) # 每日购买限制数据存储 is_passive = db.Column(db.Boolean(), nullable=False, default=0) # 是否为被动 - icon = db.Column(db.String(), nullable=False, default=0) # 图标 + icon = db.Column(db.String(), default=0) # 图标 _idx1 = db.Index("goods_group_users_idx1", "goods_name", unique=True)