记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
28c7ae24
Commit
28c7ae24
authored
Jul 15, 2021
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交支付查询
parent
0a68801b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
DragonConstant.java
...com/liquidnet/service/dragon/constant/DragonConstant.java
+2
-2
DragonPayBaseReqDto.java
...com/liquidnet/service/dragon/dto/DragonPayBaseReqDto.java
+6
-0
DragonPayBiz.java
...net/service/dragon/channel/strategy/biz/DragonPayBiz.java
+1
-1
DragonOrdersServiceImpl.java
.../service/dragon/service/impl/DragonOrdersServiceImpl.java
+3
-1
DataUtils.java
...in/java/com/liquidnet/service/dragon/utils/DataUtils.java
+1
-2
No files found.
liquidnet-bus-api/liquidnet-service-dragon-api/src/main/java/com/liquidnet/service/dragon/constant/DragonConstant.java
View file @
28c7ae24
...
...
@@ -141,7 +141,7 @@ public class DragonConstant {
public
enum
PayTypeEnum
{
PAYMENT_TYPE_APP_ALIPAY
(
"APPALIPAY"
,
"alipay"
,
"app"
,
"App内支付宝支付"
),
PAYMENT_TYPE_APP_WEPAY
(
"APPWEPAY"
,
"wepay"
,
"app"
,
"App内微信支付"
),
PAYMENT_TYPE_APP_IAP
(
"APPIAP"
,
"
applepay
"
,
"app"
,
"App内IAP(In-App Purchase)支付,iOS虚拟道具支付"
),
PAYMENT_TYPE_APP_IAP
(
"APPIAP"
,
"
iap
"
,
"app"
,
"App内IAP(In-App Purchase)支付,iOS虚拟道具支付"
),
PAYMENT_TYPE_WAP_ALIPAY
(
"WAPALIPAY"
,
"alipay"
,
"wap"
,
"手机网页内支付宝支付"
),
PAYMENT_TYPE_WAP_WEPAY
(
"WAPWEPAY"
,
"wepay"
,
"wap"
,
"手机网页调起微信支付"
),
PAYMENT_TYPE_WEB_ALIPAY
(
"WEBALIPAY"
,
"alipay"
,
"web"
,
"电脑网页内支付宝即时到账支付"
),
...
...
@@ -153,7 +153,7 @@ public class DragonConstant {
private
String
message
;
private
String
payType
;
private
String
deviceFrom
;
PayTypeEnum
(
String
code
,
String
message
,
String
payType
,
String
deviceFrom
)
{
PayTypeEnum
(
String
code
,
String
payType
,
String
deviceFrom
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
this
.
payType
=
payType
;
...
...
liquidnet-bus-api/liquidnet-service-dragon-api/src/main/java/com/liquidnet/service/dragon/dto/DragonPayBaseReqDto.java
View file @
28c7ae24
package
com
.
liquidnet
.
service
.
dragon
.
dto
;
import
com.alibaba.fastjson.JSON
;
import
lombok.Data
;
import
java.math.BigDecimal
;
...
...
@@ -31,4 +32,9 @@ public class DragonPayBaseReqDto {
private
String
quitUrl
;
private
String
showUrl
;
private
String
returnUrl
;
@Override
public
String
toString
(){
return
JSON
.
toJSONString
(
this
);
}
}
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/strategy/biz/DragonPayBiz.java
View file @
28c7ae24
...
...
@@ -44,7 +44,7 @@ public abstract class DragonPayBiz {
orders
.
setOrderCode
(
dragonPayBaseReqDto
.
getOrderCode
());
orders
.
setClientIp
(
dragonPayBaseReqDto
.
getClientIp
());
orders
.
setNotifyUrl
(
dragonPayBaseReqDto
.
getNotifyUrl
());
orders
.
setPaymentType
(
DragonConstant
.
PayTypeEnum
.
PAYMENT_TYPE_APP_IAP
.
getCod
e
());
orders
.
setPaymentType
(
(
dragonPayBaseReqDto
.
getDeviceFrom
()+
dragonPayBaseReqDto
.
getPayType
()).
toUpperCas
e
());
// orders.setPaymentId();
orders
.
setPaymentAt
(
LocalDateTime
.
now
());
// orders.setFinishedAt();
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/service/impl/DragonOrdersServiceImpl.java
View file @
28c7ae24
...
...
@@ -36,6 +36,7 @@ public class DragonOrdersServiceImpl implements IDragonOrdersService {
public
ResponseDto
<
DragonPayBaseRespDto
>
dragonPay
(
DragonPayBaseReqDto
dragonPayBaseReqDto
)
{
//设置支付编号
dragonPayBaseReqDto
.
setCode
(
IDGenerator
.
payCode
());
log
.
info
(
"dragon:dragonPay:req:dragonPayBaseReqDto : {}"
,
dragonPayBaseReqDto
.
toString
());
return
payChannelStrategyContext
.
getStrategy
(
dragonPayBaseReqDto
.
getPayType
()).
dragonPay
(
dragonPayBaseReqDto
);
}
...
...
@@ -50,7 +51,8 @@ public class DragonOrdersServiceImpl implements IDragonOrdersService {
if
(
StringUtil
.
isEmpty
(
ordersDto
)){
throw
new
LiquidnetServiceException
(
DragonErrorCodeEnum
.
TRADE_ERROR_NOT_EXISTS
.
getCode
(),
DragonErrorCodeEnum
.
TRADE_ERROR_NOT_EXISTS
.
getMessage
());
}
return
payChannelStrategyContext
.
getStrategy
(
DragonConstant
.
PayTypeEnum
.
getEnumByCode
(
ordersDto
.
getPaymentType
()).
getPayType
()).
checkOrderStatus
(
code
);
String
payType
=
DragonConstant
.
PayTypeEnum
.
getEnumByCode
(
ordersDto
.
getPaymentType
()).
getPayType
();
return
payChannelStrategyContext
.
getStrategy
(
payType
).
checkOrderStatus
(
code
);
}
@Override
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/utils/DataUtils.java
View file @
28c7ae24
...
...
@@ -12,8 +12,7 @@ public class DataUtils {
private
RedisUtil
redisUtil
;
public
void
createPayOrder
(
String
orderCode
,
String
code
,
DragonOrdersDto
ordersDto
)
{
if
(
redisUtil
.
hasKey
(
DragonConstant
.
REDIS_KET_PAY_ORDERCODE
+
orderCode
))
{
}
else
{
if
(!
redisUtil
.
hasKey
(
DragonConstant
.
REDIS_KET_PAY_ORDERCODE
+
orderCode
))
{
redisUtil
.
set
(
DragonConstant
.
REDIS_KET_PAY_ORDERCODE
+
orderCode
,
code
);
redisUtil
.
set
(
DragonConstant
.
REDIS_KET_PAY_CODE
+
code
,
ordersDto
);
}
...
...
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