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
2d62a00d
Commit
2d62a00d
authored
Jun 17, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix GET请求无业务参数情况下不执行加密
parent
d1f9d2c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
12 deletions
+33
-12
ApiService.kt
...va/com/yidian/shenghuoquan/newscontent/http/ApiService.kt
+12
-6
CommonService.kt
...com/yidian/shenghuoquan/newscontent/http/CommonService.kt
+21
-6
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/ApiService.kt
View file @
2d62a00d
...
...
@@ -58,8 +58,9 @@ class ApiService {
fun
userLogout
(
apiCallback
:
IUserLogoutCallBack
)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
HashMap
(),
timeStamp
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
userLogout
(
publicParamsMap
)
.
userLogout
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
Any
?>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
Any
?
>?)
{
...
...
@@ -75,8 +76,9 @@ class ApiService {
fun
getLifeAccountList
(
apiCallback
:
IGetLifeAccountListCallback
)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
HashMap
(),
timeStamp
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
getAccountList
(
publicParamsMap
)
.
getAccountList
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
ArrayList
<
LifeAccountItemBean
.
Response
>?>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
ArrayList
<
LifeAccountItemBean
.
Response
>?>?)
{
...
...
@@ -188,8 +190,9 @@ class ApiService {
fun
getKSYunBucket
(
apiCallback
:
IGetKSYunBucketCallback
)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
HashMap
(),
timeStamp
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
getKSYunBucket
(
publicParamsMap
)
.
getKSYunBucket
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
GetKSYunBucketBean
.
Response
>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
GetKSYunBucketBean
.
Response
>?)
{
...
...
@@ -282,8 +285,9 @@ class ApiService {
fun
authLiveIdentity
(
apiCallback
:
IAuthLiveIdentityCallback
)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
HashMap
(),
timeStamp
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
authLiveIdentity
(
publicParamsMap
)
.
authLiveIdentity
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
Any
?>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
Any
?
>?)
{
...
...
@@ -319,8 +323,9 @@ class ApiService {
fun
authAuthentication
(
apiCallback
:
IAuthAuthenticationCallback
)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
HashMap
(),
timeStamp
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
authAuthentication
(
publicParamsMap
)
.
authAuthentication
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
AuthAuthenticationBean
.
Response
?>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
AuthAuthenticationBean
.
Response
?
>?)
{
...
...
@@ -495,8 +500,9 @@ class ApiService {
fun
getConfigList
(
apiCallback
:
IGetConfigListCallback
)
{
val
timeStamp
=
System
.
currentTimeMillis
()
val
publicParamsMap
=
HttpParamsUtils
.
getPublicParamsMap
(
timeStamp
)
val
privateParamsMap
=
HttpParamsUtils
.
getPrivateParamsMap
(
HashMap
(),
timeStamp
)
ServiceFactory
.
getInstance
().
createService
(
CommonService
::
class
.
java
)
.
getConfigList
(
publicParamsMap
)
.
getConfigList
(
publicParamsMap
,
privateParamsMap
)
.
compose
(
TransformUtil
.
defaultSchedulers
())
.
subscribe
(
object
:
HttpResultSubscriber
<
GetConfigListBean
.
Response
>()
{
override
fun
onSuccess
(
result
:
HttpResult
<
GetConfigListBean
.
Response
>?)
{
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/CommonService.kt
View file @
2d62a00d
...
...
@@ -45,7 +45,10 @@ interface CommonService {
):
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
getKSYunBucket
)
fun
getKSYunBucket
(
@QueryMap
commonParams
:
Map
<
String
,
String
>):
Observable
<
HttpResult
<
Any
?
>>
fun
getKSYunBucket
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>
):
Observable
<
HttpResult
<
Any
?
>>
@Headers
(
"Content-Type: application/json"
)
@POST
(
URLs
.
businessLicenseOCR
)
...
...
@@ -61,10 +64,13 @@ interface CommonService {
fun
mobileLogin
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>):
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
userLogout
)
fun
userLogout
(
@QueryMap
commonParams
:
Map
<
String
,
String
>):
Observable
<
HttpResult
<
Any
?
>>
fun
userLogout
(
@QueryMap
commonParams
:
Map
<
String
,
String
>
,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>
):
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
accountList
)
fun
getAccountList
(
@QueryMap
commonParams
:
Map
<
String
,
String
>):
Observable
<
HttpResult
<
Any
?
>>
fun
getAccountList
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>
):
Observable
<
HttpResult
<
Any
?
>>
@Headers
(
"Content-Type: application/json"
)
@POST
(
URLs
.
createLifeAccount
)
...
...
@@ -81,13 +87,19 @@ interface CommonService {
):
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
authLiveIdentity
)
fun
authLiveIdentity
(
@QueryMap
commonParams
:
Map
<
String
,
String
>):
Observable
<
HttpResult
<
Any
?
>>
fun
authLiveIdentity
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>
):
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
authComplete
)
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
<
Any
?
>>
fun
authAuthentication
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>
):
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
authMerchantCheck
)
fun
authMerchantCheck
(
...
...
@@ -129,7 +141,10 @@ interface CommonService {
):
Observable
<
HttpResult
<
Any
?
>>
@GET
(
URLs
.
getConfigList
)
fun
getConfigList
(
@QueryMap
commonParams
:
Map
<
String
,
String
>):
Observable
<
HttpResult
<
Any
?
>>
fun
getConfigList
(
@QueryMap
commonParams
:
Map
<
String
,
String
>,
@QueryMap
requestParams
:
Map
<
String
,
String
?
>
):
Observable
<
HttpResult
<
Any
?
>>
@Headers
(
"Content-Type: application/json"
)
@POST
(
URLs
.
getLifeAccountInfoById
)
...
...
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