Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
wenHuaBu_adminServer
Commits
db75bb32
You need to sign in or sign up before continuing.
Commit
db75bb32
authored
Dec 14, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0378b37f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
cost.ts
src/biz/member/cost.ts
+1
-0
order.ts
src/biz/member/order.ts
+2
-1
No files found.
src/biz/member/cost.ts
View file @
db75bb32
...
...
@@ -130,6 +130,7 @@ export async function payCallback(body) {
const
wechartCallbackData
=
pay
.
decipher_gcm
(
body
.
resource
.
ciphertext
,
body
.
resource
.
associated_data
,
body
.
resource
.
nonce
,
V3Key
);
if
(
wechartCallbackData
.
trade_state
==
"SUCCESS"
)
{
/**支付成功 */
//用自己生成的订单号传给微信支付,支付成功后微信返回微信订单号【wechartCallbackData.transaction_id】存入数据
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
订单表
,
{
weChartPR
:
wechartCallbackData
.
out_trade_no
});
if
(
!
oldInfo
||
!
oldInfo
.
id
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
...
...
src/biz/member/order.ts
View file @
db75bb32
...
...
@@ -474,7 +474,8 @@ export async function billStateList({name, memberType, documentId, phone, mail,
itemData
.
isPay
=
changeEnumValue
(
ORDERSTATE
,
itemData
.
state
);
let
userInfomation
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
itemData
.
userId
},
[
"userId"
,
"memberState"
,
"name"
]);
itemData
.
memberState
=
changeEnumValue
(
MEMBERSTATE
,
userInfomation
.
memberState
);
itemData
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY-MM-DD"
)}
`
;
// itemData.cycle = `${moment(info.orderCycleStart).format("YYYY-MM-DD")}至${moment(info.orderCycleEnd).format("YYYY-MM-DD")}`;
itemData
.
cycle
=
`
${
moment
(
info
.
orderCycleStart
).
format
(
"YYYY"
)}
至
${
moment
(
info
.
orderCycleEnd
).
format
(
"YYYY"
)}
`
;
itemData
.
weChartCreatePayMs
=
moment
(
info
.
weChartCreatePayMs
).
format
(
"YYYY-MM-DD"
);
itemData
.
name
=
userInfomation
.
name
;
dataList
.
push
(
itemData
);
...
...
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