From 64c00cbf16762bf4a523fc968f6a8e08f36678d5 Mon Sep 17 00:00:00 2001 From: cool Date: Fri, 22 Mar 2024 18:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E6=A0=B8=E5=BF=83=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modules/demo/service/goods.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d5b4a4b..58891da 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "一个项目用COOL就够了", "private": true, "dependencies": { - "@cool-midway/core": "^7.1.13", + "@cool-midway/core": "^7.1.14", "@cool-midway/rpc": "^7.0.0", "@cool-midway/task": "^7.0.0", "@midwayjs/bootstrap": "^3.15.0", diff --git a/src/modules/demo/service/goods.ts b/src/modules/demo/service/goods.ts index 18f1e21..979656a 100644 --- a/src/modules/demo/service/goods.ts +++ b/src/modules/demo/service/goods.ts @@ -17,13 +17,12 @@ export class DemoGoodsService extends BaseService { */ async sqlPage(query) { await this.demoGoodsEntity.save({ - id: 11, + id: 1, title: '标题', price: 99.0, description: '商品描述', mainImage: 'https://cool-js.com/logo.png', }); - await this.demoGoodsEntity.delete({ id: 11 }); return this.sqlRenderPage( 'select * from demo_goods ORDER BY id ASC', query,