提交 e44921fc 编写于 作者: minghao.wu's avatar minghao.wu

fix:打印配置项

上级 8170a294
...@@ -22,7 +22,7 @@ public class PropertiesConfiguration { ...@@ -22,7 +22,7 @@ public class PropertiesConfiguration {
@Value("${netease.antispam.text.businessid}") @Value("${netease.antispam.text.businessid}")
private String neteaseAntispamTextBusinessId; private String neteaseAntispamTextBusinessId;
/*@Value("${netease.antispam.text.ad.businessid}")*/ @Value("${netease.antispam.text.ad.businessid}")
private String neteaseAntispamTextAdBusinessId; private String neteaseAntispamTextAdBusinessId;
@Value("${netease.antispam.image.apiurl}") @Value("${netease.antispam.image.apiurl}")
...@@ -122,6 +122,14 @@ public class PropertiesConfiguration { ...@@ -122,6 +122,14 @@ public class PropertiesConfiguration {
return "PropertiesConfiguration{" + return "PropertiesConfiguration{" +
"userExpire='" + userExpire + '\'' + "userExpire='" + userExpire + '\'' +
", guestExpire='" + guestExpire + '\'' + ", guestExpire='" + guestExpire + '\'' +
", fileUrl='" + fileUrl + '\'' +
", neteaseAntispamTextApiUrl='" + neteaseAntispamTextApiUrl + '\'' +
", neteaseAntispamTextBusinessId='" + neteaseAntispamTextBusinessId + '\'' +
", neteaseAntispamTextAdBusinessId='" + neteaseAntispamTextAdBusinessId + '\'' +
", neteaseAntispamImageApiUrl='" + neteaseAntispamImageApiUrl + '\'' +
", neteaseAntispamImageBusinessId='" + neteaseAntispamImageBusinessId + '\'' +
", neteaseAntispamSecretId='" + neteaseAntispamSecretId + '\'' +
", neteaseAntispamSecretKey='" + neteaseAntispamSecretKey + '\'' +
'}'; '}';
} }
} }
...@@ -59,13 +59,22 @@ public class AnalysisController { ...@@ -59,13 +59,22 @@ public class AnalysisController {
@Autowired @Autowired
private CHCRankingListService rankingListService; private CHCRankingListService rankingListService;
@Autowired
private PropertiesConfiguration propertiesConfiguration;
/** /**
* TODO: chc错题解析活动和psa的活动id 需要前端传入 * TODO: chc错题解析活动和psa的活动id 需要前端传入
*/ */
static final Integer CHC_ANALYSIS_ID = 1; static final Integer CHC_ANALYSIS_ID = 1;
static final Integer PSA_ANALYSIS_ID = 2; static final Integer PSA_ANALYSIS_ID = 2;
@ApiOperation(value = "获取活动详情", response = PicaResponse.class) @ApiOperation(value = "获取活动详情", response = PicaResponse.class)
@RequestMapping(value = "/config", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
public String config() {
return propertiesConfiguration.toString();
}
@ApiOperation(value = "获取活动详情", response = PicaResponse.class)
@RequestMapping(value = "/activityDetail", method = RequestMethod.GET, produces = "application/json;charset=UTF-8") @RequestMapping(value = "/activityDetail", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
public PicaResponse<CHCAnalysisDto> getActivityDetail(@RequestParam(required = false) Integer id, public PicaResponse<CHCAnalysisDto> getActivityDetail(@RequestParam(required = false) Integer id,
@RequestHeader(required = false) String token) { @RequestHeader(required = false) String token) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册