Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
ShenghuoquanBusiness
Commits
cab63cd2
Commit
cab63cd2
authored
Jul 05, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 身份证OCR、人脸检测、营业执照OCR接口入参调整
parent
709e091e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
73 deletions
+61
-73
BusinessLicenseOCRBean.kt
...oquan/newscontent/http/httpbean/BusinessLicenseOCRBean.kt
+19
-19
GetIDCardOCRBean.kt
...henghuoquan/newscontent/http/httpbean/GetIDCardOCRBean.kt
+35
-40
IdentifyIdOcrVerifyBean.kt
...quan/newscontent/http/httpbean/IdentifyIdOcrVerifyBean.kt
+3
-4
LifeAccountBusinessLicenseAuthFragment.kt
...content/ui/auth/LifeAccountBusinessLicenseAuthFragment.kt
+1
-4
LifeAccountIDCardAuthFragment.kt
...quan/newscontent/ui/auth/LifeAccountIDCardAuthFragment.kt
+3
-6
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/BusinessLicenseOCRBean.kt
View file @
cab63cd2
...
...
@@ -6,23 +6,23 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
* description: 营业执照OCR
*/
class
BusinessLicenseOCRBean
{
data class
Request
(
val
business_image_objectid
:
String
,
val
business_image_bucket
:
String
)
data class
Request
(
val
business_image_url
:
String
)
data class
Response
(
val
addr
:
String
,
val
code
:
String
,
val
comp
:
String
,
val
date
:
String
,
val
date_issue
:
String
,
val
form
:
String
,
val
funding
:
String
,
val
name
:
String
,
val
num
:
String
,
val
organizer
:
String
,
val
pers
:
String
,
val
regi
:
String
,
val
scope
:
String
,
val
time
:
String
,
val
type
:
String
)
}
\ No newline at end of file
data class
Response
(
val
addr
:
String
,
val
code
:
String
,
val
comp
:
String
,
val
date
:
String
,
val
date_issue
:
String
,
val
form
:
String
,
val
funding
:
String
,
val
name
:
String
,
val
num
:
String
,
val
organizer
:
String
,
val
pers
:
String
,
val
regi
:
String
,
val
scope
:
String
,
val
time
:
String
,
val
type
:
String
)
}
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/GetIDCardOCRBean.kt
View file @
cab63cd2
...
...
@@ -6,48 +6,43 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
* description: 获取身份证OCR
*/
class
GetIDCardOCRBean
(
val
request
:
Request
,
val
response
:
Response
)
{
data class
Request
(
val
posit_image_objectid
:
String
,
val
back_image_objectid
:
String
,
val
posit_bucket
:
String
,
val
back_bucket
:
String
)
data class
Request
(
val
back_image_url
:
String
,
val
posit_image_url
:
String
)
data class
Response
(
val
back
:
Back
,
val
posit
:
Posit
)
data class
Response
(
val
back
:
Back
,
val
posit
:
Posit
)
data class
Back
(
val
issued_by
:
String
,
val
valid_date_end
:
String
,
val
valid_date_start
:
String
,
val
completeness
:
Int
,
val
legality
:
Legality
)
data class
Back
(
val
issued_by
:
String
,
val
valid_date_end
:
String
,
val
valid_date_start
:
String
,
val
completeness
:
Int
,
val
legality
:
Legality
)
data class
Posit
(
val
address
:
String
,
val
birth_day
:
String
,
val
birth_month
:
String
,
val
birth_year
:
String
,
val
completeness
:
Int
,
val
gender
:
String
,
val
idcard_number
:
String
,
val
legality
:
Legality
,
val
name
:
String
,
val
nationality
:
String
)
data class
Posit
(
val
address
:
String
,
val
birth_day
:
String
,
val
birth_month
:
String
,
val
birth_year
:
String
,
val
completeness
:
Int
,
val
gender
:
String
,
val
idcard_number
:
String
,
val
legality
:
Legality
,
val
name
:
String
,
val
nationality
:
String
)
data class
Legality
(
val
Edited
:
Double
,
val
ID_Photo
:
Double
,
val
ID_Photo_Threshold
:
Double
,
val
Photocopy
:
Double
,
val
Screen
:
Double
,
val
Temporary_ID_Photo
:
Double
)
data class
Legality
(
val
Edited
:
Double
,
val
ID_Photo
:
Double
,
val
ID_Photo_Threshold
:
Double
,
val
Photocopy
:
Double
,
val
Screen
:
Double
,
val
Temporary_ID_Photo
:
Double
)
}
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/IdentifyIdOcrVerifyBean.kt
View file @
cab63cd2
package
com.yidian.shenghuoquan.newscontent.http.httpbean
class
IdentifyIdOcrVerifyBean
(
val
request
:
Request
,
val
response
:
Response
)
{
data class
Request
(
val
biz_token
:
String
,
val
meglive_objectid
:
String
)
data class
Response
(
val
verify_result
:
Boolean
)
}
data class
Request
(
val
biz_token
:
String
,
val
meglive_url
:
String
)
data class
Response
(
val
verify_result
:
Boolean
)
}
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountBusinessLicenseAuthFragment.kt
View file @
cab63cd2
...
...
@@ -240,10 +240,7 @@ class LifeAccountBusinessLicenseAuthFragment :
)
return
}
val
requestParams
=
HashMap
<
String
,
String
?>()
requestParams
[
"business_image_objectid"
]
=
objectKey
requestParams
[
"business_image_bucket"
]
=
bucket
ApiService
.
businessLicenseOCR
(
this
,
requestParams
)
ApiService
.
businessLicenseOCR
(
this
,
hashMapOf
(
Pair
(
"business_image_url"
,
"$bucket/$objectKey"
)))
}
/**
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountIDCardAuthFragment.kt
View file @
cab63cd2
...
...
@@ -508,8 +508,7 @@ class LifeAccountIDCardAuthFragment : BaseFragment<FragmentLifeAccountIdCardAuth
}
},
hashMapOf
(
Pair
(
"posit_image_objectid"
,
objectKey
),
Pair
(
"posit_bucket"
,
bucket
)
Pair
(
"posit_image_url"
,
"$bucket/$objectKey"
)
)
)
}
else
{
...
...
@@ -534,8 +533,7 @@ class LifeAccountIDCardAuthFragment : BaseFragment<FragmentLifeAccountIdCardAuth
}
},
hashMapOf
(
Pair
(
"back_image_objectid"
,
objectKey
),
Pair
(
"back_bucket"
,
bucket
)
Pair
(
"back_image_url"
,
"$bucket/$objectKey"
)
)
)
}
...
...
@@ -660,8 +658,7 @@ class LifeAccountIDCardAuthFragment : BaseFragment<FragmentLifeAccountIdCardAuth
"biz_token"
,
LifeAccountAuthDataManager
.
personalAuthData
.
liveDetectBizToken
),
Pair
(
"meglive_objectid"
,
objectKey
),
Pair
(
"meglive_bucket"
,
bucket
)
Pair
(
"meglive_url"
,
"$bucket/$objectKey"
)
)
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment