From 9fa490ff48343d5ac81813714e385b51a1428d95 Mon Sep 17 00:00:00 2001 From: shuliYao <1397940314@qq.com> Date: Mon, 15 Apr 2024 16:37:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E9=87=8F=E4=BA=91=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=A8=E6=80=81=E5=8C=96=EF=BC=8C=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=85=8D=E7=BD=AE=E6=B8=85=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jyjz/xiaoyao/ocr/api/utils/ApiConfig.java | 1 - .../src/main/resources/application-dev.yml | 22 +++++-------------- .../src/main/resources/application-pro.yml | 13 +---------- runstart/src/main/resources/application.yml | 2 +- 4 files changed, 8 insertions(+), 30 deletions(-) diff --git a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/api/utils/ApiConfig.java b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/api/utils/ApiConfig.java index 2eea963..9407bf5 100644 --- a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/api/utils/ApiConfig.java +++ b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/api/utils/ApiConfig.java @@ -46,7 +46,6 @@ public class ApiConfig { */ private Integer readTimeout = 60000; - @Value("${ocr.api.wly.localImagePath}") private String localImagePath; /** diff --git a/runstart/src/main/resources/application-dev.yml b/runstart/src/main/resources/application-dev.yml index b297e84..ee6744b 100644 --- a/runstart/src/main/resources/application-dev.yml +++ b/runstart/src/main/resources/application-dev.yml @@ -160,15 +160,15 @@ mybatis-plus: xiaoyao: web: #上传文件路径 - uploadPath: E:/ZJWorkSpace/ocr/htmlweb/upload + uploadPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/upload #页面根路径 - frontPath: E:/ZJWorkSpace/ocr/htmlweb + frontPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb #js、css、图片存放路径 - staticPath: E:/ZJWorkSpace/ocr/htmlweb/static + staticPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/static #页面模版路径 - webPath: E:/ZJWorkSpace/ocr/htmlweb/web + webPath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/web #Lucene索引路径 - lucenePath: E:/ZJWorkSpace/ocr/htmlweb/lucene/indexDir + lucenePath: D:/Java/idea/IdeaWorkSpace/ocr/htmlweb/lucene/indexDir #是否开启flowable haveFlowable: true webconfig: @@ -272,17 +272,7 @@ springfox: enabled: true # 是否启用swagger,postman调试 debugger_tools: true -#无量云api配置信息 -ocr: - api: - wly: - interface-domain: https://b-test.prevailcloud.com #接口域名 - accessKey: 7390F0221A1A73D8E13F8C8BB96F33B0 #秘钥 - accessCode: ED6F7B39768AF95E87AEA8ACCCC71A6F #秘钥编码 - connectTimeout: 5000 #请求超时时间 毫秒 - readTimeout: 60000 #接收超时时间 毫秒 - localImagePath: /server/data/images #图片本地存储地址 - data-url: https://b-test.prevailcloud.com/pangu/jingwei/thirdclient/command/pb/approval/result +#图片查重模型 image: similarityPath: http://47.93.59.251/ai/api/similarity/ classifyPath: http://47.93.59.251/api/classify/ diff --git a/runstart/src/main/resources/application-pro.yml b/runstart/src/main/resources/application-pro.yml index 0766abf..96db826 100644 --- a/runstart/src/main/resources/application-pro.yml +++ b/runstart/src/main/resources/application-pro.yml @@ -275,18 +275,7 @@ springfox: enabled: true # 是否启用swagger,postman调试 debugger_tools: true - -#无量云api配置信息 -ocr: - api: - wly: - interface-domain: https://b-test.prevailcloud.com #接口域名 - accessKey: 7390F0221A1A73D8E13F8C8BB96F33B0 #秘钥 - accessCode: ED6F7B39768AF95E87AEA8ACCCC71A6F #秘钥编码 - connectTimeout: 5000 #请求超时时间 毫秒 - readTimeout: 60000 #接收超时时间 毫秒 - localImagePath: /server/data/images #图片本地存储地址 - data-url: https://b-test.prevailcloud.com/pangu/jingwei/thirdclient/command/pb/approval/result +#图片查重模型 image: similarityPath: http://127.0.0.1:8000/api/similarity/ classifyPath: http://127.0.0.1:8000/api/classify/ diff --git a/runstart/src/main/resources/application.yml b/runstart/src/main/resources/application.yml index a8b9b21..3d7808a 100644 --- a/runstart/src/main/resources/application.yml +++ b/runstart/src/main/resources/application.yml @@ -1,3 +1,3 @@ spring: profiles: - active: pro + active: dev