记得上下班打卡 | 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
161760fd
Commit
161760fd
authored
Nov 09, 2021
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改启动报错。
parent
ec478858
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
27 deletions
+3
-27
AbstractDouYinPayStrategy.java
...el/douyinpay/strategy/impl/AbstractDouYinPayStrategy.java
+1
-26
DouYinPayStrategyAppletImpl.java
.../douyinpay/strategy/impl/DouYinPayStrategyAppletImpl.java
+2
-1
No files found.
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/douyinpay/strategy/impl/AbstractDouYinPayStrategy.java
View file @
161760fd
...
@@ -104,36 +104,11 @@ public abstract class AbstractDouYinPayStrategy implements IDouYinpayStrategy {
...
@@ -104,36 +104,11 @@ public abstract class AbstractDouYinPayStrategy implements IDouYinpayStrategy {
respDto
=
this
.
buildResponseDto
(
respDto
,
result
);
respDto
=
this
.
buildResponseDto
(
respDto
,
result
);
//支付订单持久化
//支付订单持久化
// dragonServiceCommonBiz.buildPayOrders(dragonPayBaseReqDto,respDto);
// dragonServiceCommonBiz.buildPayOrders(dragonPayBaseReqDto,respDto);
log
.
info
(
"
we
pay-->dragonPay--> 耗时:{}"
,(
System
.
currentTimeMillis
()
-
startTimeTotal
)+
"毫秒"
);
log
.
info
(
"
douYin
pay-->dragonPay--> 耗时:{}"
,(
System
.
currentTimeMillis
()
-
startTimeTotal
)+
"毫秒"
);
return
ResponseDto
.
success
(
respDto
);
return
ResponseDto
.
success
(
respDto
);
}
else
{
}
else
{
throw
new
LiquidnetServiceException
(
DragonErrorCodeEnum
.
TRADE_PARAM_ERROR
.
getCode
(),
DragonErrorCodeEnum
.
TRADE_PARAM_ERROR
.
getMessage
());
throw
new
LiquidnetServiceException
(
DragonErrorCodeEnum
.
TRADE_PARAM_ERROR
.
getCode
(),
DragonErrorCodeEnum
.
TRADE_PARAM_ERROR
.
getMessage
());
}
}
/*WepayPayRespDto respWepayDto= null;
try {
respWepayDto = XmlUtil.toBean(xmlStr, WepayPayRespDto.class);
} catch (Exception e) {
log.error("dragonPay:wepay:"+dragonPayBaseReqDto.getDeviceFrom()+" response format error: {} ",e);
throw new LiquidnetServiceException(DragonErrorCodeEnum.TRADE_PARAM_ERROR.getCode(),DragonErrorCodeEnum.TRADE_PARAM_ERROR.getMessage());
}
if(WepayConstant.WeixinTradeStateEnum.SUCCESS.getCode().equalsIgnoreCase(respWepayDto.getReturnCode())){
if(WepayConstant.WeixinTradeStateEnum.SUCCESS.getCode().equalsIgnoreCase(respWepayDto.getResultCode())){
//构造公共返回参数
DragonPayBaseRespDto respPayDto = this.buildCommonRespDto(dragonPayBaseReqDto,respWepayDto);
//构造自定义返回参数
this.buildResponseDto(respPayDto,respWepayDto);
//支付订单持久化
dragonServiceCommonBiz.buildPayOrders(dragonPayBaseReqDto,respPayDto);
log.info("wepay-->dragonPay--> 耗时:{}",(System.currentTimeMillis() - startTimeTotal)+"毫秒");
return ResponseDto.success(respPayDto);
}else{
throw new LiquidnetServiceException(DragonErrorCodeEnum.TRADE_PARAM_ERROR.getCode(),DragonErrorCodeEnum.TRADE_PARAM_ERROR.getMessage());
}
}else{
throw new LiquidnetServiceException(DragonErrorCodeEnum.TRADE_PARAM_ERROR.getCode(),DragonErrorCodeEnum.TRADE_PARAM_ERROR.getMessage());
}*/
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/douyinpay/strategy/impl/DouYinPayStrategyAppletImpl.java
View file @
161760fd
package
com
.
liquidnet
.
service
.
dragon
.
channel
.
douyinpay
.
strategy
.
impl
;
package
com
.
liquidnet
.
service
.
dragon
.
channel
.
douyinpay
.
strategy
.
impl
;
import
com.liquidnet.service.dragon.channel.douyinpay.strategy.annotation.StrategyDouYinPayHandler
;
import
com.liquidnet.service.dragon.channel.wepay.resp.WepayPayRespDto
;
import
com.liquidnet.service.dragon.channel.wepay.resp.WepayPayRespDto
;
import
com.liquidnet.service.dragon.channel.wepay.strategy.annotation.StrategyWepayHandler
;
import
com.liquidnet.service.dragon.channel.wepay.strategy.annotation.StrategyWepayHandler
;
import
com.liquidnet.service.dragon.channel.wepay.strategy.impl.AbstractWepayStrategy
;
import
com.liquidnet.service.dragon.channel.wepay.strategy.impl.AbstractWepayStrategy
;
...
@@ -22,7 +23,7 @@ import java.util.TreeMap;
...
@@ -22,7 +23,7 @@ import java.util.TreeMap;
*/
*/
@Slf4j
@Slf4j
@Component
@Component
@Strategy
Wep
ayHandler
(
DragonConstant
.
DeviceFromEnum
.
APPLET
)
@Strategy
DouYinP
ayHandler
(
DragonConstant
.
DeviceFromEnum
.
APPLET
)
public
class
DouYinPayStrategyAppletImpl
extends
AbstractDouYinPayStrategy
{
public
class
DouYinPayStrategyAppletImpl
extends
AbstractDouYinPayStrategy
{
@Value
(
"${liquidnet.dragon.url}"
)
@Value
(
"${liquidnet.dragon.url}"
)
private
String
notifyUrl
;
private
String
notifyUrl
;
...
...
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