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
670e8793
Commit
670e8793
authored
Jun 24, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix SHQBD-195 区分直接企业认证、个人认证升级和认证修改情况下402、403、406接口的请求参数
parent
db9b8242
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
LifeAccountAuthDataManager.kt
...huoquan/newscontent/ui/auth/LifeAccountAuthDataManager.kt
+3
-4
LifeAccountEnterpriseAuthActivity.kt
.../newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
+7
-3
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountAuthDataManager.kt
View file @
670e8793
...
...
@@ -153,7 +153,7 @@ object LifeAccountAuthDataManager {
* 生成营业执照上传接口请求体
*/
fun
generateAuthBusinessLicenseCommitRequest
(
lifeAccountId
:
String
?
lifeAccountId
:
String
?
,
recordId
:
Long
?
):
HashMap
<
String
,
String
?
>
{
val
requestMap
=
HashMap
<
String
,
String
?>()
requestMap
[
"code"
]
=
merchantAuthData
.
registrationCode
...
...
@@ -174,9 +174,8 @@ object LifeAccountAuthDataManager {
requestMap
[
"entterprise_image"
]
=
merchantAuthData
.
businessLicenseObjectKey
requestMap
[
"data_from"
]
=
Constant
.
DATA_FROM_B
.
toString
()
requestMap
[
"data_type"
]
=
merchantAuthData
.
merchantType
.
toString
()
lifeAccountId
?.
let
{
requestMap
[
"life_account_id"
]
=
it
}
lifeAccountId
?.
let
{
requestMap
[
"life_account_id"
]
=
it
}
recordId
?.
let
{
requestMap
[
"enterprise_auth_record_id"
]
=
it
.
toString
()
}
return
requestMap
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
View file @
670e8793
...
...
@@ -229,25 +229,29 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
LifeAccountAuthProcessView
.
PROCESS_ENTERPRISE_QUALIFICATION
)
{
// personalLifeAccountId不为null则是由个人生活号升级为企业生活号情况
// personalLifeAccountId为null则是直接进行企业认证情况
// 402接口 直接企业认证生活号id和审核id均不传 个人认证升级只传生活号id 认证修改只传审核id
ApiService
.
authBusinessLicenseCommit
(
this
,
LifeAccountAuthDataManager
.
generateAuthBusinessLicenseCommitRequest
(
personalLifeAccountId
if
(
isAuthModify
)
null
else
personalLifeAccountId
,
if
(
isAuthModify
)
LifeAccountAuthDataManager
.
merchantAuthData
.
authRecordId
else
null
)
)
}
else
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
LifeAccountAuthProcessView
.
PROCESS_ENTERPRISE_MANAGER
)
{
// 406接口 直接企业认证和认证修改不传生活号id 个人认证升级传生活号id
if
(
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
==
Constant
.
TYPE_INDIVIDUAL_BUSINESS
)
{
ApiService
.
authIndividualBusinessComplete
(
this
,
LifeAccountAuthDataManager
.
generateAuthIndividualBusinessCompleteRequest
(
personalLifeAccountId
if
(
isAuthModify
)
null
else
personalLifeAccountId
)
)
}
else
if
(
LifeAccountAuthDataManager
.
merchantAuthData
.
merchantType
==
Constant
.
TYPE_COMMON_ENTERPRISE
)
{
// 403接口 直接企业认证和认证修改不传生活号id 个人认证升级传生活号id
ApiService
.
authEnterpriseLegalIdentityCommit
(
this
,
LifeAccountAuthDataManager
.
generateAuthEnterpriseLegalIdentityCommitRequest
(
personalLifeAccountId
if
(
isAuthModify
)
null
else
personalLifeAccountId
)
)
}
...
...
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