记得上下班打卡 | 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
27531d48
Commit
27531d48
authored
Aug 22, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改线上恶性bug
parent
13bfe4f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
22 deletions
+25
-22
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+10
-7
KylinOrderTicketsServiceImpl.java
...vice/order/service/impl/KylinOrderTicketsServiceImpl.java
+15
-15
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinOrderServiceImpl.java
View file @
27531d48
...
...
@@ -112,6 +112,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
skuAndPreListAndNumber
.
add
(
skuId
+
","
+
pre
+
","
+
number
);
// 判断库存
GoblinGoodsSkuInfoVo
skuVo
=
redisUtils
.
getGoodsSkuInfoVo
(
skuParam
.
getSkuId
());
if
(!
skuParam
.
getSpuId
().
equals
(
skuVo
.
getSpuId
())){
throw
new
Exception
(
"参数异常"
);
}
int
limitCount
=
skuVo
.
getBuyLimit
()
==
0
?
Integer
.
MAX_VALUE
:
skuVo
.
getBuyLimit
();
//判断限购
if
(
orderUtils
.
noZhengzaiOrder
(
uid
))
{
...
...
@@ -423,13 +426,13 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
String
payCode
;
if
(
preParam
.
getPriceActual
().
compareTo
(
BigDecimal
.
valueOf
(
0
))
>
0
&&
!
preParam
.
getPayType
().
equals
(
"huifu"
))
{
// 调用支付
if
(
preParam
.
getPayType
().
equalsIgnoreCase
(
DragonConstant
.
PayChannelEnum
.
WEPAY
.
getCode
()))
{
if
(
preParam
.
getDeviceFrom
().
equalsIgnoreCase
(
DragonConstant
.
DeviceFromEnum
.
JS
.
getCode
())
||
preParam
.
getDeviceFrom
().
equalsIgnoreCase
(
DragonConstant
.
DeviceFromEnum
.
APPLET
.
getCode
()))
{
if
(
StringUtil
.
isEmpty
(
preParam
.
getOpenId
()))
{
return
ResponseDto
.
failure
(
"微信支付openId不能为空!"
);
}
}
}
//
if (preParam.getPayType().equalsIgnoreCase(DragonConstant.PayChannelEnum.WEPAY.getCode())) {
//
if (preParam.getDeviceFrom().equalsIgnoreCase(DragonConstant.DeviceFromEnum.JS.getCode()) || preParam.getDeviceFrom().equalsIgnoreCase(DragonConstant.DeviceFromEnum.APPLET.getCode())) {
//
if (StringUtil.isEmpty(preParam.getOpenId())) {
//
return ResponseDto.failure("微信支付openId不能为空!");
//
}
//
}
//
}
DragonPayBaseReqDto
dragonPayBaseReqDto
=
DragonPayBaseReqDto
.
getNew
();
dragonPayBaseReqDto
.
setPayType
(
preParam
.
getPayType
());
dragonPayBaseReqDto
.
setDeviceFrom
(
preParam
.
getDeviceFrom
());
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/KylinOrderTicketsServiceImpl.java
View file @
27531d48
...
...
@@ -665,14 +665,14 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
if
(
name
.
equals
(
""
))
{
name
=
"正在现场"
;
}
// 调用支付
if
(
payOrderParam
.
getPayType
().
equalsIgnoreCase
(
DragonConstant
.
PayChannelEnum
.
WEPAY
.
getCode
()))
{
if
(
payOrderParam
.
getDeviceFrom
().
equalsIgnoreCase
(
DragonConstant
.
DeviceFromEnum
.
JS
.
getCode
())
||
payOrderParam
.
getDeviceFrom
().
equalsIgnoreCase
(
DragonConstant
.
DeviceFromEnum
.
APPLET
.
getCode
()))
{
if
(
StringUtil
.
isEmpty
(
payOrderParam
.
getOpenId
()))
{
return
ResponseDto
.
failure
(
"微信支付openId不能为空!"
);
}
}
}
//
// 调用支付
//
if (payOrderParam.getPayType().equalsIgnoreCase(DragonConstant.PayChannelEnum.WEPAY.getCode())) {
//
if (payOrderParam.getDeviceFrom().equalsIgnoreCase(DragonConstant.DeviceFromEnum.JS.getCode()) || payOrderParam.getDeviceFrom().equalsIgnoreCase(DragonConstant.DeviceFromEnum.APPLET.getCode())) {
//
if (StringUtil.isEmpty(payOrderParam.getOpenId())) {
//
return ResponseDto.failure("微信支付openId不能为空!");
//
}
//
}
//
}
DragonPayBaseReqDto
dragonPayBaseReqDto
=
DragonPayBaseReqDto
.
getNew
();
dragonPayBaseReqDto
.
setPayType
(
payOrderParam
.
getPayType
());
dragonPayBaseReqDto
.
setDeviceFrom
(
payOrderParam
.
getDeviceFrom
());
...
...
@@ -795,13 +795,13 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
if
(
name
.
equals
(
""
))
{
name
=
"正在现场"
;
}
if
(
payAgainParam
.
getPayType
().
equalsIgnoreCase
(
DragonConstant
.
PayChannelEnum
.
WEPAY
.
getCode
()))
{
if
(
payAgainParam
.
getDeviceFrom
().
equalsIgnoreCase
(
DragonConstant
.
DeviceFromEnum
.
JS
.
getCode
())
||
payAgainParam
.
getDeviceFrom
().
equalsIgnoreCase
(
DragonConstant
.
DeviceFromEnum
.
APPLET
.
getCode
()))
{
if
(
StringUtil
.
isEmpty
(
payAgainParam
.
getOpenId
()))
{
return
ResponseDto
.
failure
(
"微信支付openId不能为空!"
);
}
}
}
//
if (payAgainParam.getPayType().equalsIgnoreCase(DragonConstant.PayChannelEnum.WEPAY.getCode())) {
//
if (payAgainParam.getDeviceFrom().equalsIgnoreCase(DragonConstant.DeviceFromEnum.JS.getCode()) || payAgainParam.getDeviceFrom().equalsIgnoreCase(DragonConstant.DeviceFromEnum.APPLET.getCode())) {
//
if (StringUtil.isEmpty(payAgainParam.getOpenId())) {
//
return ResponseDto.failure("微信支付openId不能为空!");
//
}
//
}
//
}
DragonPayBaseReqDto
dragonPayBaseReqDto
=
DragonPayBaseReqDto
.
getNew
();
dragonPayBaseReqDto
.
setPayType
(
payAgainParam
.
getPayType
());
dragonPayBaseReqDto
.
setDeviceFrom
(
payAgainParam
.
getDeviceFrom
());
...
...
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