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
99e313e7
Commit
99e313e7
authored
Mar 31, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
76f7a4ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
register.ts
src/biz/register.ts
+1
-1
No files found.
src/biz/register.ts
View file @
99e313e7
...
@@ -254,7 +254,7 @@ export async function unitMemberRegister3({application, id}) {
...
@@ -254,7 +254,7 @@ export async function unitMemberRegister3({application, id}) {
export
async
function
registerFlowType
({
id
})
{
export
async
function
registerFlowType
({
id
})
{
if
(
!
id
)
return
{};
if
(
!
id
)
return
{};
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
id
,
isAdmin
:
STATE
.
否
},
[
"userId"
,
"registerFlow"
,
"userRegisterState"
,
"memberType"
]);
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
:
id
,
isAdmin
:
STATE
.
否
},
[
"userId"
,
"registerFlow"
,
"userRegisterState"
,
"memberType"
]);
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
return
{
code
:
200
,
msg
:
"用户未注册"
}
//用户不存在不需要报错
if
(
oldInfo
.
userRegisterState
==
USERREGISTERSTATE
.
通过
)
{
if
(
oldInfo
.
userRegisterState
==
USERREGISTERSTATE
.
通过
)
{
return
{
code
:
601
,
msg
:
"用户已注册"
}
return
{
code
:
601
,
msg
:
"用户已注册"
}
}
}
...
...
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