Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
c7f6966a
Commit
c7f6966a
authored
Oct 18, 2022
by
jiangxiaoyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还原支付蚂蚁门店代码
parent
d91cb2be
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
29 deletions
+4
-29
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
+0
-9
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
+4
-8
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
+0
-12
No files found.
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
View file @
c7f6966a
...
...
@@ -128,13 +128,4 @@ public class ExposureOrderController {
return
ResponseUtil
.
success
(
exposureOrderService
.
getVirtualStore
(
req
.
getAppId
(),
req
.
getType
()));
}
/**
* 查询支付配置paycode
*/
@ApiAnnotation
(
logMessage
=
"查询支付配置paycode"
)
@PostMapping
(
"/getPayCode"
)
public
BaseResponse
<
String
>
getPayCode
(
@Validated
@LogParams
@RequestBody
GetPayCodeVo
req
)
{
return
ResponseUtil
.
success
(
exposureOrderService
.
getPayCode
(
req
));
}
}
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
View file @
c7f6966a
package
cn
.
freemud
.
service
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.entities.vo.GetMallPayConfigVo
;
import
cn.freemud.entities.vo.GetPayConfigVo
;
import
cn.freemud.entities.vo.GetPaySuccessDataRequest
;
import
cn.freemud.entities.vo.GetPaySuccessDataV2Request
;
import
cn.freemud.entities.vo.order.PayConfigVo
;
import
cn.freemud.entities.vo.order.PaySuccessDataVo
;
import
cn.freemud.entities.vo.order.QueryByKeysReq
;
...
...
@@ -133,11 +136,4 @@ public class ExposureOrderService {
AssortmentOpenPlatformIappWxappStore
wxAppStore
=
payService
.
getIappWxappStoreInfo
(
appId
,
type
);
return
wxAppStore
==
null
?
""
:
wxAppStore
.
getStoreId
();
}
/**
* 查询支付配置paycode
*/
public
String
getPayCode
(
GetPayCodeVo
req
)
{
return
payService
.
getPayCode
(
req
.
getAppId
(),
req
.
getStoreId
(),
req
.
getChannel
());
}
}
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
View file @
c7f6966a
...
...
@@ -1710,16 +1710,4 @@ public class PayServiceImpl {
return
payTypeCode
;
}
public
String
getPayCode
(
String
wxAppid
,
String
storeId
,
String
channel
)
{
PayChannelType
byIndex
=
PayChannelType
.
getByIndex
(
Byte
.
parseByte
(
channel
));
if
(
byIndex
.
getEbcode
()
==
null
)
return
""
;
AssortmentOpenPlatformIappWxappStore
wxAppStore
=
assortmentOpenPlatformIappWxappStoreManager
.
selectWxappStoreByWxAppIdAndStoreId
(
wxAppid
,
storeId
,
byIndex
.
getEbcode
());
if
(
wxAppStore
!=
null
&&
StringUtils
.
isNotBlank
(
wxAppStore
.
getPayCode
()))
{
return
wxAppStore
.
getPayCode
();
}
return
"9"
;
}
}
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