Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform
Commits
693c85da
Commit
693c85da
authored
Nov 28, 2020
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加开户失败
parent
da9cd7e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
GenVccController.java
...in/java/cn/qg/qaplatform/controller/GenVccController.java
+2
-2
Vcc.java
src/main/java/cn/qg/qaplatform/process/Vcc.java
+2
-1
No files found.
src/main/java/cn/qg/qaplatform/controller/GenVccController.java
View file @
693c85da
...
@@ -21,8 +21,8 @@ public class GenVccController {
...
@@ -21,8 +21,8 @@ public class GenVccController {
@PostMapping
(
"/gen"
)
@PostMapping
(
"/gen"
)
@ApiOperation
(
value
=
"vcc造数据"
)
@ApiOperation
(
value
=
"vcc造数据"
)
public
JsonResult
genVccUser
(
String
namespace
,
String
phoneNo
,
String
channel
,
Integer
status
)
throws
Exception
{
public
JsonResult
genVccUser
(
String
namespace
,
String
phoneNo
,
String
channel
,
Integer
status
)
throws
Exception
{
if
(
status
!=
0
&&
status
!=
1
)
{
if
(
status
!=
0
&&
status
!=
1
&&
status
!=
2
)
{
return
JsonResult
.
clientFailed
(
"状态必须为0
或者1
"
);
return
JsonResult
.
clientFailed
(
"状态必须为0
、1、2
"
);
}
}
if
(!
channel
.
equals
(
"214"
)
&&
!
channel
.
equals
(
"217"
))
{
if
(!
channel
.
equals
(
"214"
)
&&
!
channel
.
equals
(
"217"
))
{
return
JsonResult
.
clientFailed
(
"渠道必须为214或217"
);
return
JsonResult
.
clientFailed
(
"渠道必须为214或217"
);
...
...
src/main/java/cn/qg/qaplatform/process/Vcc.java
View file @
693c85da
...
@@ -268,7 +268,7 @@ public class Vcc {
...
@@ -268,7 +268,7 @@ public class Vcc {
/**
/**
* 额度激活
* 额度激活
*/
*/
public
static
void
quotaActivation
(
String
namespace
,
String
token
,
String
vccChannel
,
String
cardNo
,
String
requestId
)
throws
URISyntaxException
{
public
static
JSONObject
quotaActivation
(
String
namespace
,
String
token
,
String
vccChannel
,
String
cardNo
,
String
requestId
)
throws
URISyntaxException
{
String
url
=
"https://talos-"
+
namespace
+
".liangkebang.net/vcc/xyqb_mall/bind_and_open"
;
String
url
=
"https://talos-"
+
namespace
+
".liangkebang.net/vcc/xyqb_mall/bind_and_open"
;
Map
<
String
,
Object
>
headers
=
new
HashMap
<>();
Map
<
String
,
Object
>
headers
=
new
HashMap
<>();
headers
.
put
(
"x-auth-token"
,
token
);
headers
.
put
(
"x-auth-token"
,
token
);
...
@@ -276,6 +276,7 @@ public class Vcc {
...
@@ -276,6 +276,7 @@ public class Vcc {
String
params
=
"?cardNo="
+
cardNo
+
"&validateCode=000000&requestId="
+
requestId
;
String
params
=
"?cardNo="
+
cardNo
+
"&validateCode=000000&requestId="
+
requestId
;
JSONObject
result
=
HttpClientUtils
.
doGetReturnJson
(
url
+
params
,
null
,
headers
);
JSONObject
result
=
HttpClientUtils
.
doGetReturnJson
(
url
+
params
,
null
,
headers
);
log
.
info
(
"额度激活结果:"
+
result
);
log
.
info
(
"额度激活结果:"
+
result
);
return
result
;
}
}
/**
/**
...
...
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