From 3f249e399659dcd09d3fe58071b146e50e45c17f Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期五, 14 八月 2026 21:56:15 +0800
Subject: [PATCH] 为小程序端增加接口
---
src/modules/shop/service/recycleorder.ts | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/modules/shop/service/recycleorder.ts b/src/modules/shop/service/recycleorder.ts
index 1bd5240..4357256 100644
--- a/src/modules/shop/service/recycleorder.ts
+++ b/src/modules/shop/service/recycleorder.ts
@@ -119,11 +119,10 @@
});
if (order?.campusUserId) {
- await UserInfoEntity.update(
+ await UserInfoEntity.getRepository().increment(
{ unionid: order.campusUserId },
- {
- carbonBalance: () => `carbonBalance + ${totalCarbonPoint}`
- }
+ 'carbonBalance',
+ totalCarbonPoint
);
}
--
Gitblit v1.9.1