|
@@ -5,6 +5,7 @@ import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.system.domain.TPersonalImg;
|
|
|
+import com.ruoyi.system.domain.TPersonalPage;
|
|
|
import com.ruoyi.system.service.ITPersonalImgService;
|
|
|
import com.ruoyi.system.service.ITPersonalPageService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -48,7 +49,11 @@ public class ApiTemplateController extends BaseController {
|
|
|
@GetMapping(value = "/getPersonal/{id}")
|
|
|
public AjaxResult getPersonal(@PathVariable("id") Long id)
|
|
|
{
|
|
|
- return AjaxResult.success(tPersonalPageService.getById(id));
|
|
|
+ TPersonalPage personalPage = tPersonalPageService.getById(id);
|
|
|
+ if (personalPage != null && "1".equals(personalPage.getEnable())) {
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+ return AjaxResult.success(personalPage);
|
|
|
}
|
|
|
|
|
|
}
|