提交代码
parent
ff8c9ef180
commit
c2e2e30b67
|
|
@ -240,13 +240,11 @@ public class WxController extends BaseController {
|
|||
*/
|
||||
@GetMapping("/cardOCR/front")
|
||||
public AjaxResult getFront(String url) {
|
||||
url = "https://xiangguan.sxyanzhu.com"+url;
|
||||
return AjaxResult.success(OcrService.getFront(url));
|
||||
}
|
||||
|
||||
@GetMapping("/cardOCR/back")
|
||||
public AjaxResult getBack(String url) {
|
||||
url = "https://xiangguan.sxyanzhu.com"+url;
|
||||
return AjaxResult.success(OcrService.getBack(url));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1007,7 +1007,7 @@ Page({
|
|||
});
|
||||
file.forEach(async (item, idx) => {
|
||||
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) {
|
||||
this.setData({
|
||||
"form.subDeptInfos.legalPerson": res.data.name,
|
||||
|
|
@ -1088,7 +1088,7 @@ Page({
|
|||
});
|
||||
file.forEach(async (item, idx) => {
|
||||
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) {
|
||||
this.setData({
|
||||
"form.subDeptLeaderName": res.data.name,
|
||||
|
|
@ -1267,7 +1267,7 @@ Page({
|
|||
});
|
||||
file.forEach(async (item, idx) => {
|
||||
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.data.nation.indexOf("族") < 0) {
|
||||
res.data.nation = res.data.nation + "族";
|
||||
|
|
|
|||
Loading…
Reference in New Issue