Browse Source

修改openApi地址配置

dev_shibei_match
jianjun 5 years ago
parent
commit
35a95f07ee
  1. 2
      epmet-module/gov-voice/gov-voice-server/pom.xml
  2. 8
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java
  3. 2
      epmet-module/gov-voice/gov-voice-server/src/main/resources/bootstrap.yml
  4. 1
      epmet-openapi/epmet-openapi-scan/src/main/java/com/epmet/openapi/scan/common/enu/SysResponseEnum.java

2
epmet-module/gov-voice/gov-voice-server/pom.xml

@ -134,6 +134,7 @@
<nacos.ip/> <nacos.ip/>
<spring.flyway.enabled>false</spring.flyway.enabled> <spring.flyway.enabled>false</spring.flyway.enabled>
<openapi.scan.server.url>http://localhost:8107/epmetscan/api</openapi.scan.server.url>
</properties> </properties>
</profile> </profile>
<profile> <profile>
@ -166,6 +167,7 @@
<nacos.ip/> <nacos.ip/>
<spring.flyway.enabled>true</spring.flyway.enabled> <spring.flyway.enabled>true</spring.flyway.enabled>
<openapi.scan.server.url>http://localhost:8107/epmetscan/api</openapi.scan.server.url>
</properties> </properties>
</profile> </profile>
</profiles> </profiles>

8
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java

@ -121,8 +121,8 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
@Autowired @Autowired
private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient;
@Value("${openapi.scan.server.host}") @Value("${openapi.scan.server.url}")
private String scanApiHost; private String scanApiUrl;
@Value("${openapi.scan.method.imgSyncScan}") @Value("${openapi.scan.method.imgSyncScan}")
private String imgSyncScanMethod; private String imgSyncScanMethod;
@Value("${openapi.scan.method.textSyncScan}") @Value("${openapi.scan.method.textSyncScan}")
@ -974,12 +974,12 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
if(!CollectionUtils.isEmpty(imgScanParamDTO.getTasks())){ if(!CollectionUtils.isEmpty(imgScanParamDTO.getTasks())){
log.info("scanContent imgScanParamDTO:{}", JSON.toJSONString(imgScanParamDTO)); log.info("scanContent imgScanParamDTO:{}", JSON.toJSONString(imgScanParamDTO));
imgSyncScanResult = ScanContentUtils.imgSyncScan(scanApiHost.concat(imgSyncScanMethod), imgScanParamDTO); imgSyncScanResult = ScanContentUtils.imgSyncScan(scanApiUrl.concat(imgSyncScanMethod), imgScanParamDTO);
log.info("scanContent imgSyncScanResult:{}", JSON.toJSONString(imgSyncScanResult)); log.info("scanContent imgSyncScanResult:{}", JSON.toJSONString(imgSyncScanResult));
} }
if(!CollectionUtils.isEmpty(textScanParamDTO.getTasks())){ if(!CollectionUtils.isEmpty(textScanParamDTO.getTasks())){
log.info("scanContent textScanParamDTO:{}", JSON.toJSONString(textScanParamDTO)); log.info("scanContent textScanParamDTO:{}", JSON.toJSONString(textScanParamDTO));
textSyncScanResult = ScanContentUtils.textSyncScan(scanApiHost.concat(textSyncScanMethod), textScanParamDTO); textSyncScanResult = ScanContentUtils.textSyncScan(scanApiUrl.concat(textSyncScanMethod), textScanParamDTO);
log.info("scanContent textSyncScanResult:{}", JSON.toJSONString(textSyncScanResult)); log.info("scanContent textSyncScanResult:{}", JSON.toJSONString(textSyncScanResult));
} }

2
epmet-module/gov-voice/gov-voice-server/src/main/resources/bootstrap.yml

@ -106,7 +106,7 @@ ribbon:
openapi: openapi:
scan: scan:
server: server:
host: http://localhost:8107/epmetscan/api url: @openapi.scan.server.url@
method: method:
imgSyncScan: /imgSyncScan imgSyncScan: /imgSyncScan
textSyncScan: /textSyncScan textSyncScan: /textSyncScan

1
epmet-openapi/epmet-openapi-scan/src/main/java/com/epmet/openapi/scan/common/enu/SysResponseEnum.java

@ -20,7 +20,6 @@ public enum SysResponseEnum {
*/ */
/*通用枚举 */ /*通用枚举 */
EXCEPTION(10001,"系统异常"), EXCEPTION(10001,"系统异常"),
AUTH_FAIL(10002,"验签失败"),
/*审核内容 业务 01*/ /*审核内容 业务 01*/

Loading…
Cancel
Save