Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
youka-api
Overview
Overview
Details
Activity
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
java-youka-wallet
youka-api
Commits
ed1ba425
Commit
ed1ba425
authored
Jul 02, 2018
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加卡片bug修改
parent
037b4942
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
PayApiService.java
src/main/java/com/thinkgem/jeesite/modules/pay/service/PayApiService.java
+2
-1
UserApiController.java
src/main/java/com/thinkgem/jeesite/modules/user/api/UserApiController.java
+1
-1
UserApiService.java
src/main/java/com/thinkgem/jeesite/modules/user/service/UserApiService.java
+4
-0
No files found.
src/main/java/com/thinkgem/jeesite/modules/pay/service/PayApiService.java
View file @
ed1ba425
...
@@ -871,7 +871,7 @@ public class PayApiService {
...
@@ -871,7 +871,7 @@ public class PayApiService {
throw
new
MyException
(
"结算暂不支持该银行卡片"
);
throw
new
MyException
(
"结算暂不支持该银行卡片"
);
}
}
//贷记卡不支持银行 农业银行,中信银行,招商银行
//贷记卡不支持银行 农业银行,中信银行,招商银行
if
(
checkCardIsCanUse
(
cardEntity
.
getCardNo
())){
if
(
!
checkCardIsCanUse
(
cardEntity
.
getCardNo
())){
throw
new
MyException
(
"贷记卡暂不支持该银行"
);
throw
new
MyException
(
"贷记卡暂不支持该银行"
);
}
}
JuhezhongDto
dto
=
new
JuhezhongDto
();
JuhezhongDto
dto
=
new
JuhezhongDto
();
...
@@ -1544,6 +1544,7 @@ public class PayApiService {
...
@@ -1544,6 +1544,7 @@ public class PayApiService {
//获取银行卡银行,是否可用
//获取银行卡银行,是否可用
private
boolean
checkCardIsCanUse
(
String
cardNum
){
private
boolean
checkCardIsCanUse
(
String
cardNum
){
logger
.
debug
(
"校验的银行卡号:{}"
,
cardNum
);
boolean
flag
=
true
;
boolean
flag
=
true
;
String
cardDetail
=
getCardDetailByAli
(
cardNum
);
String
cardDetail
=
getCardDetailByAli
(
cardNum
);
JSONObject
parse
=
(
JSONObject
)
JSONObject
.
parse
(
cardDetail
);
JSONObject
parse
=
(
JSONObject
)
JSONObject
.
parse
(
cardDetail
);
...
...
src/main/java/com/thinkgem/jeesite/modules/user/api/UserApiController.java
View file @
ed1ba425
...
@@ -369,7 +369,7 @@ public class UserApiController {
...
@@ -369,7 +369,7 @@ public class UserApiController {
}
catch
(
MyException
e
)
{
}
catch
(
MyException
e
)
{
resp
.
setStatus
(
ComCode
.
STATUS_CODE_5001
);
resp
.
setStatus
(
ComCode
.
STATUS_CODE_5001
);
if
(
e
.
getMessage
().
equals
(
"输入银行卡号有误"
)
||
e
.
getMessage
().
equals
(
"银行卡类别不正确"
)
if
(
e
.
getMessage
().
equals
(
"输入银行卡号有误"
)
||
e
.
getMessage
().
equals
(
"银行卡类别不正确"
)
||
e
.
getMessage
().
equals
(
"手机号码格式不正确"
)||
e
.
getMessage
().
equals
(
"信用卡信息需补全"
)){
||
e
.
getMessage
().
equals
(
"手机号码格式不正确"
)||
e
.
getMessage
().
equals
(
"信用卡信息需补全"
)
||
e
.
getMessage
().
equals
(
"不能重复添加卡片"
)
){
resp
.
setMessage
(
e
.
getMessage
());
resp
.
setMessage
(
e
.
getMessage
());
}
else
{
}
else
{
resp
.
setMessage
(
ComCode
.
STATUS_CODE_5001_DESC
);
resp
.
setMessage
(
ComCode
.
STATUS_CODE_5001_DESC
);
...
...
src/main/java/com/thinkgem/jeesite/modules/user/service/UserApiService.java
View file @
ed1ba425
...
@@ -232,6 +232,10 @@ public class UserApiService {
...
@@ -232,6 +232,10 @@ public class UserApiService {
logger
.
debug
(
"输入银行卡号有误"
);
logger
.
debug
(
"输入银行卡号有误"
);
throw
new
MyException
(
"输入银行卡号有误"
);
throw
new
MyException
(
"输入银行卡号有误"
);
}
}
CardEntity
cardEntity1
=
userDao
.
getCardEntity
(
request
);
if
(
cardEntity1
!=
null
){
throw
new
MyException
(
"不能重复添加卡片"
);
}
// CC信用卡,DC储蓄卡
// CC信用卡,DC储蓄卡
String
cardType
=
checkCardNum
.
equals
(
"CC"
)?
"C"
:
"D"
;
String
cardType
=
checkCardNum
.
equals
(
"CC"
)?
"C"
:
"D"
;
if
(!
request
.
getCardType
().
equals
(
cardType
)){
if
(!
request
.
getCardType
().
equals
(
cardType
)){
...
...
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