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)); } // 获取当前时间(没有时区)