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
22771e3c
Commit
22771e3c
authored
Jun 07, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 企业认证接口
parent
bc52f167
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
113 additions
and
132 deletions
+113
-132
URLs.kt
...onLib/Common/src/main/java/com/yidian/common/http/URLs.kt
+6
-6
LifeAccountMerchantAuthData.kt
...nghuoquan/newscontent/bean/LifeAccountMerchantAuthData.kt
+1
-0
ApiService.kt
...va/com/yidian/shenghuoquan/newscontent/http/ApiService.kt
+16
-16
CommonService.kt
...com/yidian/shenghuoquan/newscontent/http/CommonService.kt
+2
-2
IAuthBusinessLicenseCommitCallback.kt
...ntent/http/callback/IAuthBusinessLicenseCommitCallback.kt
+1
-1
IAuthEnterpriseCompleteCallback.kt
...scontent/http/callback/IAuthEnterpriseCompleteCallback.kt
+0
-13
IAuthEnterpriseLegalIdentityCommitCallback.kt
...tp/callback/IAuthEnterpriseLegalIdentityCommitCallback.kt
+4
-2
IAuthEnterpriseLiveIdentityCallback.kt
...tent/http/callback/IAuthEnterpriseLiveIdentityCallback.kt
+1
-1
IAuthIndividualBusinessCompleteCallback.kt
.../http/callback/IAuthIndividualBusinessCompleteCallback.kt
+13
-0
IAuthIndividualBusinessIdentityCommitCallback.kt
...callback/IAuthIndividualBusinessIdentityCommitCallback.kt
+1
-1
IAuthMerchantCheckCallback.kt
...n/newscontent/http/callback/IAuthMerchantCheckCallback.kt
+1
-1
AuthBusinessLicenseCommitBean.kt
...ewscontent/http/httpbean/AuthBusinessLicenseCommitBean.kt
+3
-6
AuthEnterpriseCompleteBean.kt
...n/newscontent/http/httpbean/AuthEnterpriseCompleteBean.kt
+0
-22
AuthEnterpriseLegalIdentityCommitBean.kt
...nt/http/httpbean/AuthEnterpriseLegalIdentityCommitBean.kt
+4
-4
AuthEnterpriseLiveIdentityBean.kt
...wscontent/http/httpbean/AuthEnterpriseLiveIdentityBean.kt
+3
-2
AuthIndividualBusinessCompleteBean.kt
...ntent/http/httpbean/AuthIndividualBusinessCompleteBean.kt
+14
-0
AuthIndividualBusinessIdentityCommitBean.kt
...http/httpbean/AuthIndividualBusinessIdentityCommitBean.kt
+4
-6
AuthMerchantCheckBean.kt
...uoquan/newscontent/http/httpbean/AuthMerchantCheckBean.kt
+17
-5
LifeAccountAuthActivity.kt
...enghuoquan/newscontent/ui/auth/LifeAccountAuthActivity.kt
+1
-1
LifeAccountAuthDataManager.kt
...huoquan/newscontent/ui/auth/LifeAccountAuthDataManager.kt
+4
-17
LifeAccountEnterpriseAuthActivity.kt
.../newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
+13
-20
LifeAccountIDCardAuthFragment.kt
...quan/newscontent/ui/auth/LifeAccountIDCardAuthFragment.kt
+4
-6
No files found.
CommonLib/Common/src/main/java/com/yidian/common/http/URLs.kt
View file @
22771e3c
...
@@ -38,11 +38,11 @@ class URLs {
...
@@ -38,11 +38,11 @@ class URLs {
const
val
authLiveIdentity
=
"/merchant/auth/live_identity"
const
val
authLiveIdentity
=
"/merchant/auth/live_identity"
const
val
authComplete
=
"/merchant/auth/complete"
const
val
authComplete
=
"/merchant/auth/complete"
const
val
authAuthentication
=
"/merchant/auth/authentication"
const
val
authAuthentication
=
"/merchant/auth/authentication"
const
val
authMerchantCheck
=
"/merchant/enterprise/
ent_
check"
const
val
authMerchantCheck
=
"/merchant/enterprise/check"
const
val
authBusinessLicenseCommit
=
"/merchant/enterprise/
ent_commit
"
const
val
authBusinessLicenseCommit
=
"/merchant/enterprise/
business
"
const
val
authEnterpriseLegalIdentityCommit
=
"/merchant/enterprise/legal
_commit
"
const
val
authEnterpriseLegalIdentityCommit
=
"/merchant/enterprise/legal"
const
val
authIndividualBusinessIdentityCommit
=
"/merchant/enterprise/e
nt_personal
"
const
val
authIndividualBusinessIdentityCommit
=
"/merchant/enterprise/e
mployed
"
const
val
authEnterpriseLiveIdentity
=
"/merchant/enterprise/live
_identity
"
const
val
authEnterpriseLiveIdentity
=
"/merchant/enterprise/live"
const
val
auth
EnterpriseComplete
=
"/merchant/enterprise/comple
te"
const
val
auth
IndividualBusinessComplete
=
"/merchant/enterprise/employed_compla
te"
}
}
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/bean/LifeAccountMerchantAuthData.kt
View file @
22771e3c
...
@@ -11,6 +11,7 @@ class LifeAccountMerchantAuthData {
...
@@ -11,6 +11,7 @@ class LifeAccountMerchantAuthData {
var
businessLicenseObjectKey
:
String
=
""
var
businessLicenseObjectKey
:
String
=
""
var
registrationName
:
String
=
""
var
registrationName
:
String
=
""
var
registrationCode
:
String
=
""
var
registrationCode
:
String
=
""
var
recordId
:
Long
=
0
// 营业执照相关信息
// 营业执照相关信息
var
type
:
String
?
=
null
var
type
:
String
?
=
null
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/ApiService.kt
View file @
22771e3c
...
@@ -335,7 +335,7 @@ class ApiService {
...
@@ -335,7 +335,7 @@ class ApiService {
})
})
}
}
// 401 商户认证检查
// 401 商户认证检查
接口
fun
authMerchantCheck
(
apiCallback
:
IAuthMerchantCheckCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
fun
authMerchantCheck
(
apiCallback
:
IAuthMerchantCheckCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
...
@@ -354,7 +354,7 @@ class ApiService {
...
@@ -354,7 +354,7 @@ class ApiService {
})
})
}
}
// 402 商户上传营业执照信息
// 402 商户上传营业执照信息
接口
fun
authBusinessLicenseCommit
(
apiCallback
:
IAuthBusinessLicenseCommitCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
fun
authBusinessLicenseCommit
(
apiCallback
:
IAuthBusinessLicenseCommitCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
...
@@ -373,7 +373,7 @@ class ApiService {
...
@@ -373,7 +373,7 @@ class ApiService {
})
})
}
}
// 403 普通企业上传法人身份信息
// 403 普通企业上传法人身份信息
接口
fun
authEnterpriseLegalIdentityCommit
(
apiCallback
:
IAuthEnterpriseLegalIdentityCommitCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
fun
authEnterpriseLegalIdentityCommit
(
apiCallback
:
IAuthEnterpriseLegalIdentityCommitCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
...
@@ -381,18 +381,18 @@ class ApiService {
...
@@ -381,18 +381,18 @@ class ApiService {
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
authEnterpriseLegalIdentityCommit
(
publicParamsMap
,
privateParamsMap
)
.
authEnterpriseLegalIdentityCommit
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
A
ny
?>()
{
.
subscribe
(
object
:
HttpResultSubscriber
<
A
uthEnterpriseLegalIdentityCommitBean
.
Response
?>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
A
ny
?
>?)
{
override
fun
onSuccess
(
result
:
HttpResult
<
A
uthEnterpriseLegalIdentityCommitBean
.
Response
?
>?)
{
apiCallback
.
authEnterpriseLegalIdentityCommitSuccess
()
apiCallback
.
authEnterpriseLegalIdentityCommitSuccess
(
result
?.
result
)
}
}
override
fun
onFailer
(
result
:
HttpResult
<
A
ny
?
>?)
{
override
fun
onFailer
(
result
:
HttpResult
<
A
uthEnterpriseLegalIdentityCommitBean
.
Response
?
>?)
{
apiCallback
.
authEnterpriseLegalIdentityCommitFailure
(
result
?.
reason
)
apiCallback
.
authEnterpriseLegalIdentityCommitFailure
(
result
?.
reason
)
}
}
})
})
}
}
// 404 个体工商户身份认证
// 404 个体工商户身份认证
接口
fun
authIndividualBusinessIdentityCommit
(
apiCallback
:
IAuthIndividualBusinessIdentityCommitCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
fun
authIndividualBusinessIdentityCommit
(
apiCallback
:
IAuthIndividualBusinessIdentityCommitCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
...
@@ -430,21 +430,21 @@ class ApiService {
...
@@ -430,21 +430,21 @@ class ApiService {
})
})
}
}
// 4
10 企业认证完成认证
// 4
06 个体工商户认证完成接口
fun
auth
EnterpriseComplete
(
apiCallback
:
IAuthEnterprise
CompleteCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
fun
auth
IndividualBusinessComplete
(
apiCallback
:
IAuthIndividualBusiness
CompleteCallback
,
requestParams
:
HashMap
<
String
,
String
?
>)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
requestParams
,
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
requestParams
,
timeStamp
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
auth
Enterprise
Complete
(
publicParamsMap
,
privateParamsMap
)
.
auth
IndividualBusiness
Complete
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
Auth
Enterprise
CompleteBean
.
Response
?>()
{
.
subscribe
(
object
:
HttpResultSubscriber
<
Auth
IndividualBusiness
CompleteBean
.
Response
?>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
Auth
Enterprise
CompleteBean
.
Response
?
>?)
{
override
fun
onSuccess
(
result
:
HttpResult
<
Auth
IndividualBusiness
CompleteBean
.
Response
?
>?)
{
apiCallback
.
auth
Enterprise
CompleteSuccess
(
result
?.
result
)
apiCallback
.
auth
IndividualBusiness
CompleteSuccess
(
result
?.
result
)
}
}
override
fun
onFailer
(
result
:
HttpResult
<
Auth
Enterprise
CompleteBean
.
Response
?
>?)
{
override
fun
onFailer
(
result
:
HttpResult
<
Auth
IndividualBusiness
CompleteBean
.
Response
?
>?)
{
apiCallback
.
auth
Enterprise
CompleteFailure
(
result
?.
reason
)
apiCallback
.
auth
IndividualBusiness
CompleteFailure
(
result
?.
reason
)
}
}
})
})
}
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/CommonService.kt
View file @
22771e3c
...
@@ -91,6 +91,6 @@ interface CommonService {
...
@@ -91,6 +91,6 @@ interface CommonService {
@GET
(
URLs
.
authEnterpriseLiveIdentity
)
@GET
(
URLs
.
authEnterpriseLiveIdentity
)
fun
authEnterpriseLiveIdentity
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>)
:
Observable
<
HttpResult
<
Any
?
>>
fun
authEnterpriseLiveIdentity
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>)
:
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
auth
Enterprise
Complete
)
@GET
(
URLs
.
auth
IndividualBusiness
Complete
)
fun
auth
Enterprise
Complete
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>)
:
Observable
<
HttpResult
<
Any
?
>>
fun
auth
IndividualBusiness
Complete
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>)
:
Observable
<
HttpResult
<
Any
?
>>
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/callback/IAuthBusinessLicenseCommitCallback.kt
View file @
22771e3c
...
@@ -5,7 +5,7 @@ import com.yidian.shenghuoquan.newscontent.http.httpbean.AuthBusinessLicenseComm
...
@@ -5,7 +5,7 @@ import com.yidian.shenghuoquan.newscontent.http.httpbean.AuthBusinessLicenseComm
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 7:25 PM
* date: 6/3/21 7:25 PM
* description: API /merchant/enterprise/
ent_commit
* description: API /merchant/enterprise/
business
*/
*/
interface
IAuthBusinessLicenseCommitCallback
{
interface
IAuthBusinessLicenseCommitCallback
{
fun
authBusinessLicenseCommitSuccess
(
result
:
AuthBusinessLicenseCommitBean
.
Response
?)
fun
authBusinessLicenseCommitSuccess
(
result
:
AuthBusinessLicenseCommitBean
.
Response
?)
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/callback/IAuthEnterpriseCompleteCallback.kt
deleted
100644 → 0
View file @
bc52f167
package
com.yidian.shenghuoquan.newscontent.http.callback
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthEnterpriseCompleteBean
/**
* author: yinjiacheng
* date: 6/3/21 9:12 PM
* description: API /merchant/enterprise/complete
*/
interface
IAuthEnterpriseCompleteCallback
{
fun
authEnterpriseCompleteSuccess
(
result
:
AuthEnterpriseCompleteBean
.
Response
?)
fun
authEnterpriseCompleteFailure
(
message
:
String
?)
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/callback/IAuthEnterpriseLegalIdentityCommitCallback.kt
View file @
22771e3c
package
com.yidian.shenghuoquan.newscontent.http.callback
package
com.yidian.shenghuoquan.newscontent.http.callback
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthEnterpriseLegalIdentityCommitBean
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 8:38 PM
* date: 6/3/21 8:38 PM
* description: API /merchant/enterprise/
ent_commit
* description: API /merchant/enterprise/
legal
*/
*/
interface
IAuthEnterpriseLegalIdentityCommitCallback
{
interface
IAuthEnterpriseLegalIdentityCommitCallback
{
fun
authEnterpriseLegalIdentityCommitSuccess
()
fun
authEnterpriseLegalIdentityCommitSuccess
(
result
:
AuthEnterpriseLegalIdentityCommitBean
.
Response
?
)
fun
authEnterpriseLegalIdentityCommitFailure
(
message
:
String
?)
fun
authEnterpriseLegalIdentityCommitFailure
(
message
:
String
?)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/callback/IAuthEnterpriseLiveIdentityCallback.kt
View file @
22771e3c
...
@@ -3,7 +3,7 @@ package com.yidian.shenghuoquan.newscontent.http.callback
...
@@ -3,7 +3,7 @@ package com.yidian.shenghuoquan.newscontent.http.callback
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 9:06 PM
* date: 6/3/21 9:06 PM
* description: API /merchant/enterprise/live
_identity
* description: API /merchant/enterprise/live
*/
*/
interface
IAuthEnterpriseLiveIdentityCallback
{
interface
IAuthEnterpriseLiveIdentityCallback
{
fun
authEnterpriseLiveIdentitySuccess
()
fun
authEnterpriseLiveIdentitySuccess
()
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/callback/IAuthIndividualBusinessCompleteCallback.kt
0 → 100644
View file @
22771e3c
package
com.yidian.shenghuoquan.newscontent.http.callback
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthIndividualBusinessCompleteBean
/**
* author: yinjiacheng
* date: 6/3/21 9:12 PM
* description: API /merchant/enterprise/employed_complate
*/
interface
IAuthIndividualBusinessCompleteCallback
{
fun
authIndividualBusinessCompleteSuccess
(
result
:
AuthIndividualBusinessCompleteBean
.
Response
?)
fun
authIndividualBusinessCompleteFailure
(
message
:
String
?)
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/callback/IAuthIndividualBusinessIdentityCommitCallback.kt
View file @
22771e3c
...
@@ -3,7 +3,7 @@ package com.yidian.shenghuoquan.newscontent.http.callback
...
@@ -3,7 +3,7 @@ package com.yidian.shenghuoquan.newscontent.http.callback
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 8:55 PM
* date: 6/3/21 8:55 PM
* description: API /merchant/enterprise/e
nt_personal
* description: API /merchant/enterprise/e
mployed
*/
*/
interface
IAuthIndividualBusinessIdentityCommitCallback
{
interface
IAuthIndividualBusinessIdentityCommitCallback
{
fun
authIndividualBusinessIdentityCommitSuccess
()
fun
authIndividualBusinessIdentityCommitSuccess
()
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/callback/IAuthMerchantCheckCallback.kt
View file @
22771e3c
...
@@ -5,7 +5,7 @@ import com.yidian.shenghuoquan.newscontent.http.httpbean.AuthMerchantCheckBean
...
@@ -5,7 +5,7 @@ import com.yidian.shenghuoquan.newscontent.http.httpbean.AuthMerchantCheckBean
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 6:21 PM
* date: 6/3/21 6:21 PM
* description: API /merchant/enterprise/
ent_
check
* description: API /merchant/enterprise/check
*/
*/
interface
IAuthMerchantCheckCallback
{
interface
IAuthMerchantCheckCallback
{
fun
authMerchantCheckSuccess
(
result
:
AuthMerchantCheckBean
.
Response
?)
fun
authMerchantCheckSuccess
(
result
:
AuthMerchantCheckBean
.
Response
?)
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthBusinessLicenseCommitBean.kt
View file @
22771e3c
...
@@ -3,12 +3,11 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
...
@@ -3,12 +3,11 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 6:23 PM
* date: 6/3/21 6:23 PM
* description: API /merchant/enterprise/
ent_commit
* description: API /merchant/enterprise/
business
*/
*/
class
AuthBusinessLicenseCommitBean
{
class
AuthBusinessLicenseCommitBean
{
data class
Request
(
data class
Request
(
val
user_id
:
Long
,
val
code
:
String
,
val
code
:
String
,
val
name
:
String
,
val
name
:
String
,
val
type
:
String
?,
val
type
:
String
?,
...
@@ -28,10 +27,8 @@ class AuthBusinessLicenseCommitBean {
...
@@ -28,10 +27,8 @@ class AuthBusinessLicenseCommitBean {
val
data_from
:
Int
,
val
data_from
:
Int
,
val
data_type
:
Int
,
val
data_type
:
Int
,
val
life_account_id
:
Long
?,
val
life_account_id
:
Long
?,
val
proxy_user_name
:
String
?,
val
mobile
:
String
?,
val
is_agent
:
Int
?
)
)
data class
Response
(
val
data
:
Int
)
data class
Response
(
val
record_id
:
Int
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthEnterpriseCompleteBean.kt
deleted
100644 → 0
View file @
bc52f167
package
com.yidian.shenghuoquan.newscontent.http.httpbean
/**
* author: yinjiacheng
* date: 6/3/21 9:08 PM
* description: API /merchant/enterprise/complete
*/
class
AuthEnterpriseCompleteBean
{
data class
Request
(
val
code
:
String
)
data class
Response
(
val
enterprise_auth_record_id
:
Long
,
val
code
:
String
,
val
name
:
String
,
val
legal_person
:
String
,
val
legal_id_card
:
String
,
val
data_type
:
Int
,
val
audit_status
:
Int
)
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthEnterpriseLegalIdentityCommitBean.kt
View file @
22771e3c
...
@@ -3,9 +3,9 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
...
@@ -3,9 +3,9 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 7:37 PM
* date: 6/3/21 7:37 PM
* description: API /merchant/enterprise/
ent_commit
* description: API /merchant/enterprise/
legal
*/
*/
class
AuthEnterpriseLegalIdentityCommitBean
()
{
class
AuthEnterpriseLegalIdentityCommitBean
{
data class
Request
(
data class
Request
(
val
record_id
:
Long
,
val
record_id
:
Long
,
...
@@ -22,9 +22,9 @@ class AuthEnterpriseLegalIdentityCommitBean() {
...
@@ -22,9 +22,9 @@ class AuthEnterpriseLegalIdentityCommitBean() {
val
valid_date_end
:
String
?,
val
valid_date_end
:
String
?,
val
issued_by
:
String
?,
val
issued_by
:
String
?,
val
life_account_id
:
Long
?,
val
life_account_id
:
Long
?,
val
proxy_user_name
:
String
?,
val
mobile
:
String
,
val
mobile
:
String
,
val
is_agent
:
String
?
)
)
data class
Response
(
val
life_account_id
:
Long
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthEnterpriseLiveIdentityBean.kt
View file @
22771e3c
...
@@ -3,9 +3,10 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
...
@@ -3,9 +3,10 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 9:05 PM
* date: 6/3/21 9:05 PM
* description: API /merchant/enterprise/live
_identity
* description: API /merchant/enterprise/live
*/
*/
class
AuthEnterpriseLiveIdentityBean
{
class
AuthEnterpriseLiveIdentityBean
{
data class
Request
(
val
code
:
String
,
val
idcard_number
:
String
)
data class
Request
(
val
record_id
:
Long
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthIndividualBusinessCompleteBean.kt
0 → 100644
View file @
22771e3c
package
com.yidian.shenghuoquan.newscontent.http.httpbean
/**
* author: yinjiacheng
* date: 6/3/21 9:08 PM
* description: API /merchant/enterprise/employed_complate
*/
class
AuthIndividualBusinessCompleteBean
{
data class
Request
(
val
record_id
:
Long
)
data class
Response
(
val
life_account_id
:
Long
)
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthIndividualBusinessIdentityCommitBean.kt
View file @
22771e3c
...
@@ -3,13 +3,12 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
...
@@ -3,13 +3,12 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 8:41 PM
* date: 6/3/21 8:41 PM
* description: API /merchant/enterprise/e
nt_personal
* description: API /merchant/enterprise/e
mployed
*/
*/
class
AuthIndividualBusinessIdentityCommitBean
{
class
AuthIndividualBusinessIdentityCommitBean
{
data class
Request
(
data class
Request
(
val
code
:
String
,
val
record_id
:
Long
,
val
data_type
:
Int
,
val
front_img
:
String
,
val
front_img
:
String
,
val
bak_img
:
String
,
val
bak_img
:
String
,
val
front_completeness
:
Int
,
val
front_completeness
:
Int
,
...
@@ -22,8 +21,7 @@ class AuthIndividualBusinessIdentityCommitBean {
...
@@ -22,8 +21,7 @@ class AuthIndividualBusinessIdentityCommitBean {
val
valid_date_start
:
String
?,
val
valid_date_start
:
String
?,
val
valid_date_end
:
String
?,
val
valid_date_end
:
String
?,
val
issued_by
:
String
?,
val
issued_by
:
String
?,
val
proxy_user_name
:
String
?,
val
mobile
:
String
val
phone
:
String
?,
val
is_agent
:
Int
?
)
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthMerchantCheckBean.kt
View file @
22771e3c
...
@@ -3,16 +3,28 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
...
@@ -3,16 +3,28 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
/**
/**
* author: yinjiacheng
* author: yinjiacheng
* date: 6/3/21 6:05 PM
* date: 6/3/21 6:05 PM
* description: API /merchant/enterprise/
ent_
check
* description: API /merchant/enterprise/check
*/
*/
class
AuthMerchantCheckBean
{
class
AuthMerchantCheckBean
{
data class
Request
(
data class
Request
(
val
user_id
:
Long
,
val
life_account_id
:
Long
?,
val
life_account_id
:
Long
?,
val
mobile
:
String
?,
val
is_agent
:
Int
?
)
)
data class
Response
(
val
enterprise_auth_record_id
:
Int
)
data class
Response
(
val
audit_opinion
:
String
,
val
audit_status
:
Int
,
val
code
:
String
,
val
data_type
:
Int
,
val
enterprise_auth_record_id
:
Int
,
val
entterprise_image
:
String
,
val
legal_back_id_card
:
String
,
val
legal_front_id_card
:
String
,
val
legal_id_card
:
String
,
val
legal_person
:
String
,
val
live_identity_status
:
Int
,
val
mobile
:
String
,
val
name
:
String
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountAuthActivity.kt
View file @
22771e3c
...
@@ -75,7 +75,7 @@ class LifeAccountAuthActivity : BaseActivity<ActivityLifeAccountAuthBinding>(),
...
@@ -75,7 +75,7 @@ class LifeAccountAuthActivity : BaseActivity<ActivityLifeAccountAuthBinding>(),
R
.
id
.
view_enterprise_auth
->
{
R
.
id
.
view_enterprise_auth
->
{
// 请求企业认证信息 用于回显已填入的信息
// 请求企业认证信息 用于回显已填入的信息
val
params
=
HashMap
<
String
,
String
?>(
1
)
val
params
=
HashMap
<
String
,
String
?>(
1
)
params
[
"
user_id"
]
=
Hawk
.
get
(
HawkConfig
.
UserId
,
""
)
params
[
"
life_account_id"
]
=
null
ApiService
.
authMerchantCheck
(
this
,
params
)
ApiService
.
authMerchantCheck
(
this
,
params
)
}
}
}
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountAuthDataManager.kt
View file @
22771e3c
...
@@ -80,12 +80,10 @@ object LifeAccountAuthDataManager {
...
@@ -80,12 +80,10 @@ object LifeAccountAuthDataManager {
* 生成营业执照上传接口请求体
* 生成营业执照上传接口请求体
*/
*/
fun
generateAuthBusinessLicenseCommitRequest
(
fun
generateAuthBusinessLicenseCommitRequest
(
userId
:
Long
,
dataType
:
Int
,
dataType
:
Int
,
lifeAccountId
:
Long
?
lifeAccountId
:
Long
?
):
HashMap
<
String
,
String
?
>
{
):
HashMap
<
String
,
String
?
>
{
val
requestMap
=
HashMap
<
String
,
String
?>()
val
requestMap
=
HashMap
<
String
,
String
?>()
requestMap
[
"user_id"
]
=
userId
.
toString
()
requestMap
[
"code"
]
=
merchantAuthData
.
registrationCode
requestMap
[
"code"
]
=
merchantAuthData
.
registrationCode
requestMap
[
"name"
]
=
merchantAuthData
.
registrationName
requestMap
[
"name"
]
=
merchantAuthData
.
registrationName
requestMap
[
"type"
]
=
merchantAuthData
.
type
requestMap
[
"type"
]
=
merchantAuthData
.
type
...
@@ -105,21 +103,15 @@ object LifeAccountAuthDataManager {
...
@@ -105,21 +103,15 @@ object LifeAccountAuthDataManager {
requestMap
[
"data_from"
]
=
Constant
.
DATA_FROM_B
.
toString
()
requestMap
[
"data_from"
]
=
Constant
.
DATA_FROM_B
.
toString
()
requestMap
[
"data_type"
]
=
dataType
.
toString
()
requestMap
[
"data_type"
]
=
dataType
.
toString
()
requestMap
[
"life_account_id"
]
=
lifeAccountId
.
toString
()
requestMap
[
"life_account_id"
]
=
lifeAccountId
.
toString
()
requestMap
[
"proxy_user_name"
]
=
null
requestMap
[
"mobile"
]
=
null
requestMap
[
"is_agent"
]
=
null
return
requestMap
return
requestMap
}
}
/**
/**
* 生成个体工商户身份上传接口请求体
* 生成个体工商户身份上传接口请求体
*/
*/
fun
generateAuthIndividualBusinessIdentityCommitRequest
(
fun
generateAuthIndividualBusinessIdentityCommitRequest
():
HashMap
<
String
,
String
?
>
{
dataType
:
Int
):
HashMap
<
String
,
String
?
>
{
val
requestMap
=
HashMap
<
String
,
String
?>()
val
requestMap
=
HashMap
<
String
,
String
?>()
requestMap
[
"code"
]
=
merchantAuthData
.
registrationCode
requestMap
[
"record_id"
]
=
merchantAuthData
.
recordId
.
toString
()
requestMap
[
"data_type"
]
=
dataType
.
toString
()
requestMap
[
"front_img"
]
=
personalAuthData
.
idCardPortraitFaceObjectKey
requestMap
[
"front_img"
]
=
personalAuthData
.
idCardPortraitFaceObjectKey
requestMap
[
"bak_img"
]
=
personalAuthData
.
idCardNationalEmblemFaceObjectKey
requestMap
[
"bak_img"
]
=
personalAuthData
.
idCardNationalEmblemFaceObjectKey
requestMap
[
"front_completeness"
]
=
requestMap
[
"front_completeness"
]
=
...
@@ -134,9 +126,7 @@ object LifeAccountAuthDataManager {
...
@@ -134,9 +126,7 @@ object LifeAccountAuthDataManager {
requestMap
[
"valid_date_start"
]
=
personalAuthData
.
validDateStart
requestMap
[
"valid_date_start"
]
=
personalAuthData
.
validDateStart
requestMap
[
"valid_date_end"
]
=
personalAuthData
.
validDateEnd
requestMap
[
"valid_date_end"
]
=
personalAuthData
.
validDateEnd
requestMap
[
"issued_by"
]
=
personalAuthData
.
issuedBy
requestMap
[
"issued_by"
]
=
personalAuthData
.
issuedBy
requestMap
[
"proxy_user_name"
]
=
null
requestMap
[
"mobile"
]
=
personalAuthData
.
phoneNum
requestMap
[
"phone"
]
=
null
requestMap
[
"is_agent"
]
=
null
return
requestMap
return
requestMap
}
}
...
@@ -144,11 +134,10 @@ object LifeAccountAuthDataManager {
...
@@ -144,11 +134,10 @@ object LifeAccountAuthDataManager {
* 生成普通企业法人身份信息上传接口请求体
* 生成普通企业法人身份信息上传接口请求体
*/
*/
fun
generateAuthEnterpriseLegalIdentityCommitRequest
(
fun
generateAuthEnterpriseLegalIdentityCommitRequest
(
authRecordId
:
Long
,
lifeAccountId
:
Long
?
lifeAccountId
:
Long
?
):
HashMap
<
String
,
String
?
>
{
):
HashMap
<
String
,
String
?
>
{
val
requestMap
=
HashMap
<
String
,
String
?>()
val
requestMap
=
HashMap
<
String
,
String
?>()
requestMap
[
"record_id"
]
=
authR
ecordId
.
toString
()
requestMap
[
"record_id"
]
=
merchantAuthData
.
r
ecordId
.
toString
()
requestMap
[
"front_img"
]
=
personalAuthData
.
idCardPortraitFaceObjectKey
requestMap
[
"front_img"
]
=
personalAuthData
.
idCardPortraitFaceObjectKey
requestMap
[
"bak_img"
]
=
personalAuthData
.
idCardNationalEmblemFaceObjectKey
requestMap
[
"bak_img"
]
=
personalAuthData
.
idCardNationalEmblemFaceObjectKey
requestMap
[
"front_completeness"
]
=
requestMap
[
"front_completeness"
]
=
...
@@ -164,9 +153,7 @@ object LifeAccountAuthDataManager {
...
@@ -164,9 +153,7 @@ object LifeAccountAuthDataManager {
requestMap
[
"valid_date_end"
]
=
personalAuthData
.
validDateEnd
requestMap
[
"valid_date_end"
]
=
personalAuthData
.
validDateEnd
requestMap
[
"issued_by"
]
=
personalAuthData
.
issuedBy
requestMap
[
"issued_by"
]
=
personalAuthData
.
issuedBy
requestMap
[
"life_account_id"
]
=
lifeAccountId
.
toString
()
requestMap
[
"life_account_id"
]
=
lifeAccountId
.
toString
()
requestMap
[
"proxy_user_name"
]
=
null
requestMap
[
"mobile"
]
=
personalAuthData
.
phoneNum
requestMap
[
"mobile"
]
=
personalAuthData
.
phoneNum
requestMap
[
"is_agent"
]
=
null
return
requestMap
return
requestMap
}
}
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
View file @
22771e3c
...
@@ -4,8 +4,6 @@ import android.os.Bundle
...
@@ -4,8 +4,6 @@ import android.os.Bundle
import
android.util.Log
import
android.util.Log
import
android.view.View
import
android.view.View
import
androidx.fragment.app.Fragment
import
androidx.fragment.app.Fragment
import
com.orhanobut.hawk.Hawk
import
com.yidian.common.HawkConfig
import
com.yidian.common.XRouterPathConstants
import
com.yidian.common.XRouterPathConstants
import
com.yidian.common.base.BaseActivity
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.R
import
com.yidian.shenghuoquan.newscontent.R
...
@@ -15,10 +13,11 @@ import com.yidian.shenghuoquan.newscontent.constant.Constant
...
@@ -15,10 +13,11 @@ import com.yidian.shenghuoquan.newscontent.constant.Constant
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountEnterpriseAuthBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountEnterpriseAuthBinding
import
com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuthBusinessLicenseCommitCallback
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuthBusinessLicenseCommitCallback
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuth
Enterprise
CompleteCallback
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuth
IndividualBusiness
CompleteCallback
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuthEnterpriseLegalIdentityCommitCallback
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuthEnterpriseLegalIdentityCommitCallback
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthBusinessLicenseCommitBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthBusinessLicenseCommitBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthEnterpriseCompleteBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthEnterpriseLegalIdentityCommitBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthIndividualBusinessCompleteBean
import
com.yidian.shenghuoquan.newscontent.ui.dialog.BottomSelectDialog
import
com.yidian.shenghuoquan.newscontent.ui.dialog.BottomSelectDialog
import
com.yidian.shenghuoquan.newscontent.widget.LifeAccountAuthProcessView
import
com.yidian.shenghuoquan.newscontent.widget.LifeAccountAuthProcessView
import
com.yidian.xpage.XPageManager
import
com.yidian.xpage.XPageManager
...
@@ -31,7 +30,7 @@ import com.yidian.xpage.XPageManager
...
@@ -31,7 +30,7 @@ import com.yidian.xpage.XPageManager
class
LifeAccountEnterpriseAuthActivity
:
BaseActivity
<
ActivityLifeAccountEnterpriseAuthBinding
>(),
class
LifeAccountEnterpriseAuthActivity
:
BaseActivity
<
ActivityLifeAccountEnterpriseAuthBinding
>(),
View
.
OnClickListener
,
BottomSelectAdapter
.
OnItemClickListener
<
BottomSelectBean
>,
View
.
OnClickListener
,
BottomSelectAdapter
.
OnItemClickListener
<
BottomSelectBean
>,
IAuthBusinessLicenseCommitCallback
,
IAuthEnterpriseLegalIdentityCommitCallback
,
IAuthBusinessLicenseCommitCallback
,
IAuthEnterpriseLegalIdentityCommitCallback
,
IAuth
Enterprise
CompleteCallback
{
IAuth
IndividualBusiness
CompleteCallback
{
private
val
fragmentList
:
ArrayList
<
Fragment
>
by
lazy
{
private
val
fragmentList
:
ArrayList
<
Fragment
>
by
lazy
{
arrayListOf
<
Fragment
>(
arrayListOf
<
Fragment
>(
...
@@ -165,11 +164,9 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -165,11 +164,9 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
R
.
id
.
btn_next
->
{
R
.
id
.
btn_next
->
{
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
LifeAccountAuthProcessView
.
PROCESS_ENTERPRISE_QUALIFICATION
)
{
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
LifeAccountAuthProcessView
.
PROCESS_ENTERPRISE_QUALIFICATION
)
{
// TODO: 6/4/21 判断是否为个人生活号升级
// TODO: 6/4/21 判断是否为个人生活号升级
ApiService
.
authBusinessLicenseCommit
(
ApiService
.
authBusinessLicenseCommit
(
this
,
this
,
LifeAccountAuthDataManager
.
generateAuthBusinessLicenseCommitRequest
(
LifeAccountAuthDataManager
.
generateAuthBusinessLicenseCommitRequest
(
Hawk
.
get
<
Long
>(
HawkConfig
.
UserId
),
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
,
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
,
null
null
)
)
...
@@ -177,14 +174,14 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -177,14 +174,14 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
}
else
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
LifeAccountAuthProcessView
.
PROCESS_ENTERPRISE_MANAGER
)
{
}
else
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
LifeAccountAuthProcessView
.
PROCESS_ENTERPRISE_MANAGER
)
{
if
(
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
==
Constant
.
TYPE_INDIVIDUAL_BUSINESS
)
{
if
(
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
==
Constant
.
TYPE_INDIVIDUAL_BUSINESS
)
{
val
params
=
HashMap
<
String
,
String
?>()
val
params
=
HashMap
<
String
,
String
?>()
params
[
"
code
"
]
=
params
[
"
record_id
"
]
=
LifeAccountAuthDataManager
.
merchantAuthData
.
re
gistrationCode
LifeAccountAuthDataManager
.
merchantAuthData
.
re
cordId
.
toString
()
ApiService
.
auth
Enterprise
Complete
(
this
,
params
)
ApiService
.
auth
IndividualBusiness
Complete
(
this
,
params
)
}
else
if
(
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
==
Constant
.
TYPE_COMMON_ENTERPRISE
)
{
}
else
if
(
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
==
Constant
.
TYPE_COMMON_ENTERPRISE
)
{
ApiService
.
authEnterpriseLegalIdentityCommit
(
ApiService
.
authEnterpriseLegalIdentityCommit
(
this
,
this
,
LifeAccountAuthDataManager
.
generateAuthEnterpriseLegalIdentityCommitRequest
(
LifeAccountAuthDataManager
.
generateAuthEnterpriseLegalIdentityCommitRequest
(
123
,
null
null
)
)
)
)
}
}
...
@@ -230,13 +227,9 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -230,13 +227,9 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
)
)
}
}
override
fun
authEnterpriseLegalIdentityCommitSuccess
()
{
override
fun
authEnterpriseLegalIdentityCommitSuccess
(
result
:
AuthEnterpriseLegalIdentityCommitBean
.
Response
?
)
{
// 普通企业法人身份信息提交成功
请求企业认证完成接口
// 普通企业法人身份信息提交成功
// TODO: 6/6/21 跳转提交成功页面
// TODO: 6/6/21 跳转提交成功页面
val
params
=
HashMap
<
String
,
String
?>()
params
[
"code"
]
=
LifeAccountAuthDataManager
.
merchantAuthData
.
registrationCode
ApiService
.
authEnterpriseComplete
(
this
,
params
)
}
}
override
fun
authEnterpriseLegalIdentityCommitFailure
(
message
:
String
?)
{
override
fun
authEnterpriseLegalIdentityCommitFailure
(
message
:
String
?)
{
...
@@ -246,12 +239,12 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -246,12 +239,12 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
)
)
}
}
override
fun
auth
EnterpriseCompleteSuccess
(
result
:
AuthEnterprise
CompleteBean
.
Response
?)
{
override
fun
auth
IndividualBusinessCompleteSuccess
(
result
:
AuthIndividualBusiness
CompleteBean
.
Response
?)
{
//
企业
认证完成
//
个体工商户
认证完成
// TODO: 6/6/21 跳转提交成功页面
// TODO: 6/6/21 跳转提交成功页面
}
}
override
fun
auth
Enterprise
CompleteFailure
(
message
:
String
?)
{
override
fun
auth
IndividualBusiness
CompleteFailure
(
message
:
String
?)
{
Log
.
e
(
Log
.
e
(
Constant
.
LIFE_ACCOUNT_AUTH_TAG
,
Constant
.
LIFE_ACCOUNT_AUTH_TAG
,
"request auth enterprise complete failure, message: $message"
"request auth enterprise complete failure, message: $message"
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountIDCardAuthFragment.kt
View file @
22771e3c
...
@@ -494,9 +494,9 @@ class LifeAccountIDCardAuthFragment : BaseFragment<FragmentLifeAccountIdCardAuth
...
@@ -494,9 +494,9 @@ class LifeAccountIDCardAuthFragment : BaseFragment<FragmentLifeAccountIdCardAuth
// 检查下一步条件
// 检查下一步条件
(
activity
as
LifeAccountPersonalAuthActivity
).
checkNextCondition
()
(
activity
as
LifeAccountPersonalAuthActivity
).
checkNextCondition
()
}
else
{
}
else
{
val
params
=
HashMap
<
String
,
String
?>(
2
)
val
params
=
HashMap
<
String
,
String
?>(
1
)
params
[
"
code"
]
=
LifeAccountAuthDataManager
.
merchantAuthData
.
registrationCode
params
[
"
record_id"
]
=
params
[
"idcard_number"
]
=
LifeAccountAuthDataManager
.
personalAuthData
.
idCardNum
LifeAccountAuthDataManager
.
merchantAuthData
.
recordId
.
toString
()
ApiService
.
authEnterpriseLiveIdentity
(
this
,
params
)
ApiService
.
authEnterpriseLiveIdentity
(
this
,
params
)
// 检查下一步条件
// 检查下一步条件
(
activity
as
LifeAccountEnterpriseAuthActivity
).
checkNextCondition
()
(
activity
as
LifeAccountEnterpriseAuthActivity
).
checkNextCondition
()
...
@@ -683,9 +683,7 @@ class LifeAccountIDCardAuthFragment : BaseFragment<FragmentLifeAccountIdCardAuth
...
@@ -683,9 +683,7 @@ class LifeAccountIDCardAuthFragment : BaseFragment<FragmentLifeAccountIdCardAuth
Constant
.
TYPE_AUTH_INDIVIDUAL_BUSINESS
->
{
Constant
.
TYPE_AUTH_INDIVIDUAL_BUSINESS
->
{
ApiService
.
authIndividualBusinessIdentityCommit
(
ApiService
.
authIndividualBusinessIdentityCommit
(
this
,
this
,
LifeAccountAuthDataManager
.
generateAuthIndividualBusinessIdentityCommitRequest
(
LifeAccountAuthDataManager
.
generateAuthIndividualBusinessIdentityCommitRequest
()
Constant
.
TYPE_INDIVIDUAL_BUSINESS
)
)
)
}
}
}
}
...
...
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