Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
PeiZhen-Java
peizhen-java
Commits
fca31f6c
Commit
fca31f6c
authored
Oct 07, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app微信支付无openid不传
parent
358bd703
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
+4
-2
No files found.
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
View file @
fca31f6c
...
@@ -740,12 +740,14 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
...
@@ -740,12 +740,14 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
Object
payment
=
null
;
Object
payment
=
null
;
int
money
=
(
int
)
(
totalOrder
.
getPayMoney
()
*
100
);
int
money
=
(
int
)
(
totalOrder
.
getPayMoney
()
*
100
);
try
{
try
{
String
openId
=
sysUserMapper
.
selectById
(
loginUser
.
getUserId
()).
getOpenId
();
WxPayUnifiedOrderRequest
orderRequest
=
new
WxPayUnifiedOrderRequest
();
WxPayUnifiedOrderRequest
orderRequest
=
new
WxPayUnifiedOrderRequest
();
orderRequest
.
setBody
(
bo
.
getOrderTitle
());
orderRequest
.
setBody
(
bo
.
getOrderTitle
());
orderRequest
.
setOutTradeNo
(
totalOrder
.
getOrderSn
());
orderRequest
.
setOutTradeNo
(
totalOrder
.
getOrderSn
());
orderRequest
.
setTotalFee
(
money
);
// 元转成分
orderRequest
.
setTotalFee
(
money
);
// 元转成分
orderRequest
.
setOpenid
(
sysUserMapper
.
selectById
(
loginUser
.
getUserId
()).
getOpenId
());
if
(
StringUtils
.
isNotEmpty
(
openId
)){
orderRequest
.
setOpenid
(
openId
);
}
orderRequest
.
setSpbillCreateIp
(
"127.0.0.1"
);
orderRequest
.
setSpbillCreateIp
(
"127.0.0.1"
);
orderRequest
.
setNotifyUrl
(
"https://peizheng.shanpeikj.com/api/applet/totalOrder/orderPayCallBack"
);
orderRequest
.
setNotifyUrl
(
"https://peizheng.shanpeikj.com/api/applet/totalOrder/orderPayCallBack"
);
...
...
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