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
40f5e6e8
Commit
40f5e6e8
authored
Mar 22, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c7047303
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
register.ts
src/biz/register.ts
+3
-1
No files found.
src/biz/register.ts
View file @
40f5e6e8
...
...
@@ -241,7 +241,9 @@ export async function unitMemberRegister3({application, userId}) {
export
async
function
registerFlowType
({
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
,
isAdmin
:
STATE
.
否
},
[
"userId"
,
"registerFlow"
,
"userRegisterState"
,
"memberType"
]);
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
oldInfo
.
userRegisterState
==
USERREGISTERSTATE
.
通过
)
throw
new
BizError
(
ERRORENUM
.
用户已注册成功
);
if
(
oldInfo
.
userRegisterState
==
USERREGISTERSTATE
.
通过
)
{
return
{
code
:
601
,
msg
:
"用户已注册"
}
}
let
dataInfo
:
any
=
extractData
(
oldInfo
,
[
"userId"
,
"registerFlow"
,
"userRegisterState"
,
"memberType"
]);
...
...
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