企业列表出来了
parent
4f219dfc27
commit
2b31e011d3
|
@ -46,6 +46,9 @@ public class MyApiController extends BaseController
|
||||||
if(myApi.getMyNum()==0){
|
if(myApi.getMyNum()==0){
|
||||||
return Result.error("次数不足");
|
return Result.error("次数不足");
|
||||||
}
|
}
|
||||||
|
if(myApi.getMyStates().equals("N")){
|
||||||
|
return Result.error("已被禁用");
|
||||||
|
}
|
||||||
Long userId = SecurityUtils.getUserId();
|
Long userId = SecurityUtils.getUserId();
|
||||||
myApi.setUserId(userId);
|
myApi.setUserId(userId);
|
||||||
return Result.success(myApiService.updByUserIdAndApiId(myApi));
|
return Result.success(myApiService.updByUserIdAndApiId(myApi));
|
||||||
|
|
Loading…
Reference in New Issue