二手车交易,识别接口更换
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {ocrHandler, uploadImage} from "@/api/mine";
|
||||
import {unifiedOCRWithCompress, uploadImage} from "@/api/mine";
|
||||
|
||||
export default {
|
||||
name: "uploadCommon",
|
||||
@ -96,7 +96,7 @@ export default {
|
||||
file.uid = Date.now(); // 使用时间戳作为唯一标识符
|
||||
if (this.text == '行驶证照片') {
|
||||
// 行驶证识别
|
||||
let result = await ocrHandler({
|
||||
let result = await unifiedOCRWithCompress({
|
||||
ocrType: 3,
|
||||
imageUrl: res.data,
|
||||
cardSide: 'FRONT'
|
||||
@ -104,7 +104,7 @@ export default {
|
||||
let data = {url: res?.data, info: {...result?.data?.frontInfo}}
|
||||
this.$emit('success1', data)
|
||||
} else if (this.text == '车辆45度照') {
|
||||
let result = await ocrHandler({
|
||||
let result = await unifiedOCRWithCompress({
|
||||
ocrType: 10,
|
||||
imageUrl: res.data,
|
||||
cardSide: 'FRONT'
|
||||
|
Reference in New Issue
Block a user