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
9edd9334
Commit
9edd9334
authored
Jun 03, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 个人认证完成接口
parent
6205d0da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
4 deletions
+27
-4
ApiService.kt
...va/com/yidian/shenghuoquan/newscontent/http/ApiService.kt
+1
-1
CommonService.kt
...com/yidian/shenghuoquan/newscontent/http/CommonService.kt
+1
-1
LifeAccountPersonalAuthActivity.kt
...an/newscontent/ui/auth/LifeAccountPersonalAuthActivity.kt
+25
-2
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/ApiService.kt
View file @
9edd9334
...
...
@@ -265,7 +265,7 @@ class ApiService {
}
// 103 认证完成后创建生活号
fun
authComplete
(
apiCallback
:
IAuthCompleteCallback
,
requestParams
:
AuthCompleteBean
.
Request
)
{
fun
authComplete
(
apiCallback
:
IAuthCompleteCallback
,
requestParams
:
Map
<
String
,
String
>
)
{
val
paramsMap
=
HttpParamsUtils
.
getParamsMap
()
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
authComplete
(
paramsMap
,
requestParams
)
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/CommonService.kt
View file @
9edd9334
...
...
@@ -68,7 +68,7 @@ interface CommonService {
fun
authLiveIdentity
(
@QueryMap
commonParams
:
Map
<
String
,
String
>):
Observable
<
HttpResult
<
Any
>>
@GET
(
URLs
.
authComplete
)
fun
authComplete
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
AuthCompleteBean
.
Request
):
Observable
<
HttpResult
<
Any
>>
fun
authComplete
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
>
):
Observable
<
HttpResult
<
Any
>>
@GET
(
URLs
.
authAuthentication
)
fun
authAuthentication
(
@QueryMap
commonParams
:
Map
<
String
,
String
>):
Observable
<
HttpResult
<
AuthAuthenticationBean
.
Response
>>
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountPersonalAuthActivity.kt
View file @
9edd9334
package
com.yidian.shenghuoquan.newscontent.ui.auth
import
android.os.Bundle
import
android.util.Log
import
android.view.View
import
android.widget.CompoundButton
import
com.orhanobut.hawk.Hawk
import
com.yidian.common.HawkConfig
import
com.yidian.common.XRouterPathConstants
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.R
import
com.yidian.shenghuoquan.newscontent.constant.Constant
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountPersonalAuthBinding
import
com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuthCompleteCallback
import
com.yidian.xpage.XPageManager
/**
...
...
@@ -15,7 +21,7 @@ import com.yidian.xpage.XPageManager
* description: 生活号个人认证
*/
class
LifeAccountPersonalAuthActivity
:
BaseActivity
<
ActivityLifeAccountPersonalAuthBinding
>(),
View
.
OnClickListener
,
CompoundButton
.
OnCheckedChangeListener
{
View
.
OnClickListener
,
CompoundButton
.
OnCheckedChangeListener
,
IAuthCompleteCallback
{
override
fun
createViewBinding
():
ActivityLifeAccountPersonalAuthBinding
{
return
ActivityLifeAccountPersonalAuthBinding
.
inflate
(
layoutInflater
)
...
...
@@ -67,7 +73,13 @@ class LifeAccountPersonalAuthActivity : BaseActivity<ActivityLifeAccountPersonal
// TODO: 5/27/21 跳转职业标签选择 选择完成后进行下一步检查
}
R
.
id
.
btn_next
->
{
// TODO: 5/27/21 首先执行身份信息入库(保证信息是最新的),再执行认证逻辑
// 个人认证 完成认证
val
requestParams
=
HashMap
<
String
,
String
>()
requestParams
[
"mobile"
]
=
Hawk
.
get
(
HawkConfig
.
Mobile
,
""
)
ApiService
.
authComplete
(
this
,
requestParams
)
}
}
}
...
...
@@ -76,4 +88,15 @@ class LifeAccountPersonalAuthActivity : BaseActivity<ActivityLifeAccountPersonal
if
(
buttonView
?.
isPressed
==
false
)
return
checkNextCondition
()
}
override
fun
authCompleteSuccess
()
{
// TODO: 6/3/21 跳转个人认证成功页
}
override
fun
authCompleteFailure
(
message
:
String
?)
{
Log
.
e
(
Constant
.
LIFE_ACCOUNT_AUTH_TAG
,
"request auth complete failure: message: $message"
)
}
}
\ No newline at end of file
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