提交代码

dev_xd
姜玉琦 2025-10-31 14:42:23 +08:00
parent ff8c9ef180
commit c2e2e30b67
2 changed files with 3 additions and 5 deletions

View File

@ -240,13 +240,11 @@ public class WxController extends BaseController {
*/ */
@GetMapping("/cardOCR/front") @GetMapping("/cardOCR/front")
public AjaxResult getFront(String url) { public AjaxResult getFront(String url) {
url = "https://xiangguan.sxyanzhu.com"+url;
return AjaxResult.success(OcrService.getFront(url)); return AjaxResult.success(OcrService.getFront(url));
} }
@GetMapping("/cardOCR/back") @GetMapping("/cardOCR/back")
public AjaxResult getBack(String url) { public AjaxResult getBack(String url) {
url = "https://xiangguan.sxyanzhu.com"+url;
return AjaxResult.success(OcrService.getBack(url)); return AjaxResult.success(OcrService.getBack(url));
} }
} }

View File

@ -1007,7 +1007,7 @@ Page({
}); });
file.forEach(async (item, idx) => { file.forEach(async (item, idx) => {
let obj = await this.syncUploadImage(item); let obj = await this.syncUploadImage(item);
findCardOcrFront(obj.data.data.url).then((res) => { findCardOcrFront(config.baseImgUrl+obj.data.data.url).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.setData({ this.setData({
"form.subDeptInfos.legalPerson": res.data.name, "form.subDeptInfos.legalPerson": res.data.name,
@ -1088,7 +1088,7 @@ Page({
}); });
file.forEach(async (item, idx) => { file.forEach(async (item, idx) => {
let obj = await this.syncUploadImage(item); let obj = await this.syncUploadImage(item);
findCardOcrFront(obj.data.data.url).then((res) => { findCardOcrFront(config.baseImgUrl+obj.data.data.url).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.setData({ this.setData({
"form.subDeptLeaderName": res.data.name, "form.subDeptLeaderName": res.data.name,
@ -1267,7 +1267,7 @@ Page({
}); });
file.forEach(async (item, idx) => { file.forEach(async (item, idx) => {
let obj = await this.syncUploadImage(item); let obj = await this.syncUploadImage(item);
findCardOcrFront(obj.data.data.url).then((res) => { findCardOcrFront(config.baseImgUrl+obj.data.data.url).then((res) => {
if (res.code == 200) { if (res.code == 200) {
if (res.data.nation.indexOf("族") < 0) { if (res.data.nation.indexOf("族") < 0) {
res.data.nation = res.data.nation + "族"; res.data.nation = res.data.nation + "族";