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
08813c85
Commit
08813c85
authored
May 19, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
cbbc26e6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
cost.ts
src/biz/member/cost.ts
+2
-2
costVerification.ts
src/biz/member/finance/costVerification.ts
+2
-2
memberFees.ts
src/biz/member/memberFees.ts
+1
-1
main.ts
src/main.ts
+3
-0
No files found.
src/biz/member/cost.ts
View file @
08813c85
...
@@ -147,7 +147,7 @@ export async function testCallback(weChartPR) {
...
@@ -147,7 +147,7 @@ export async function testCallback(weChartPR) {
/**只有一笔欠费时才更新用户状态 */
/**只有一笔欠费时才更新用户状态 */
let
updateUserInfo
:
any
=
{};
let
updateUserInfo
:
any
=
{};
if
(
notPayCount
<
1
)
{
if
(
notPayCount
<
1
)
{
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
oldInfo
.
userId
},
{
lifespanEndTime
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
oldInfo
.
userId
},
{
orderCycleEnd
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
;
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
;
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
;
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
;
...
@@ -215,7 +215,7 @@ export async function payCallback(body) {
...
@@ -215,7 +215,7 @@ export async function payCallback(body) {
/**只有一笔欠费时才更新用户状态 */
/**只有一笔欠费时才更新用户状态 */
let
updateUserInfo
:
any
=
{};
let
updateUserInfo
:
any
=
{};
if
(
notPayCount
<
1
)
{
if
(
notPayCount
<
1
)
{
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
oldInfo
.
userId
},
{
lifespanEndTime
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
oldInfo
.
userId
},
{
orderCycleEnd
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
...
...
src/biz/member/finance/costVerification.ts
View file @
08813c85
...
@@ -191,7 +191,7 @@ export async function confirmReceiptPass({id}) {
...
@@ -191,7 +191,7 @@ export async function confirmReceiptPass({id}) {
let
updateUserInfo
:
any
=
{};
let
updateUserInfo
:
any
=
{};
/**只有一笔欠费时才更新用户状态 */
/**只有一笔欠费时才更新用户状态 */
if
(
notPayCount
<
1
)
{
if
(
notPayCount
<
1
)
{
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
orderInfo
.
userId
},
{
lifespanEndTime
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
orderInfo
.
userId
},
{
orderCycleEnd
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
...
@@ -394,7 +394,7 @@ export async function confirmReceiptManyPass({idList}) {
...
@@ -394,7 +394,7 @@ export async function confirmReceiptManyPass({idList}) {
let
updateUserInfo
:
any
=
{};
let
updateUserInfo
:
any
=
{};
/**只有一笔欠费时才更新用户状态 */
/**只有一笔欠费时才更新用户状态 */
if
(
notPayCount
<
1
)
{
if
(
notPayCount
<
1
)
{
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
orderInfo
.
userId
},
{
lifespanEndTime
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
orderInfo
.
userId
},
{
orderCycleEnd
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
...
...
src/biz/member/memberFees.ts
View file @
08813c85
...
@@ -501,7 +501,7 @@ export async function offlinePayment({orderId, paymentNum, offlinePaymentUrl })
...
@@ -501,7 +501,7 @@ export async function offlinePayment({orderId, paymentNum, offlinePaymentUrl })
let
updateUserInfo
:
any
=
{};
let
updateUserInfo
:
any
=
{};
/**只有一笔欠费时才更新用户状态 */
/**只有一笔欠费时才更新用户状态 */
if
(
notPayCount
<
1
)
{
if
(
notPayCount
<
1
)
{
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
orderInfo
.
userId
},
{
lifespanEndTime
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
let
newOrderInfo
=
await
findOnceToSort
(
TABLEENUM
.
订单表
,
{
userId
:
orderInfo
.
userId
},
{
orderCycleEnd
:
-
1
},
[
"orderCycleStart"
,
"orderCycleEnd"
]);
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanStartTime
=
newOrderInfo
.
orderCycleStart
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
updateUserInfo
.
lifespanEndTime
=
newOrderInfo
.
orderCycleEnd
,
...
...
src/main.ts
View file @
08813c85
...
@@ -2,6 +2,7 @@ import { changeDB, getMailData, getData, getUnitData, outPutMember } from "./biz
...
@@ -2,6 +2,7 @@ import { changeDB, getMailData, getData, getUnitData, outPutMember } from "./biz
import
{
sendMail
}
from
"./biz/mail"
;
import
{
sendMail
}
from
"./biz/mail"
;
import
{
testCallback
}
from
"./biz/member/cost"
;
import
{
testCallback
}
from
"./biz/member/cost"
;
import
{
initActivity
}
from
"./biz/member/msgActivity"
;
import
{
initActivity
}
from
"./biz/member/msgActivity"
;
import
{
getSession
}
from
"./biz/public"
;
import
{
initSaveUnsubmitted
}
from
"./biz/register"
;
import
{
initSaveUnsubmitted
}
from
"./biz/register"
;
import
{
initSMS
}
from
"./biz/sms"
;
import
{
initSMS
}
from
"./biz/sms"
;
import
{
initSystemTask
}
from
"./biz/task"
;
import
{
initSystemTask
}
from
"./biz/task"
;
...
@@ -10,6 +11,7 @@ import { initDataBaseModel } from "./data/db/db";
...
@@ -10,6 +11,7 @@ import { initDataBaseModel } from "./data/db/db";
import
{
httpServer
}
from
"./net/http_server"
;
import
{
httpServer
}
from
"./net/http_server"
;
async
function
lanuch
()
{
async
function
lanuch
()
{
/**初始化配置解析 */
/**初始化配置解析 */
await
initConfig
();
await
initConfig
();
/**初始化数据库 */
/**初始化数据库 */
...
@@ -35,6 +37,7 @@ async function lanuch() {
...
@@ -35,6 +37,7 @@ async function lanuch() {
// await changeDB();
// await changeDB();
// await getData();
// await getData();
// await outPutMember();
// await outPutMember();
}
}
lanuch
();
lanuch
();
...
...
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