From 42d0f186be249d17e1333e31fce1f248bff40990 Mon Sep 17 00:00:00 2001 From: Wang YiHang <3060234389@qq.com> Date: Sun, 8 Sep 2024 11:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=88=97=E8=A1=A8=E5=87=BA?= =?UTF-8?q?=E6=9D=A5=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/muyu/market/controller/MyApiController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud-market-server/src/main/java/com/muyu/market/controller/MyApiController.java b/cloud-market-server/src/main/java/com/muyu/market/controller/MyApiController.java index 33210e2..6e6f3fc 100644 --- a/cloud-market-server/src/main/java/com/muyu/market/controller/MyApiController.java +++ b/cloud-market-server/src/main/java/com/muyu/market/controller/MyApiController.java @@ -135,6 +135,9 @@ public class MyApiController extends BaseController MyApi myApi1 = myApiService.selectMyApiByUserIdAndApiId(userId, myApi.getApiId()); if (myApi1!=null) { myApi.setMyNum(myApi1.getMyNum()+myApi.getMyNum()); + if(myApi1.getMyStates().equals("N")){ + myApi.setMyStates("Y"); + } return toAjax(myApiService.updateById(myApi)); } // 获取当前时间(没有时区)