Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
15ba7beb
Commit
15ba7beb
authored
Jul 20, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
c97dba72
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
center-manage/app/base/controller/ctl.base.js
+1
-1
center-manage/app/base/service/impl/auth/userSve.js
+4
-1
No files found.
center-manage/app/base/controller/ctl.base.js
View file @
15ba7beb
...
...
@@ -99,7 +99,7 @@ class CtlBase {
}
catch
(
e
)
{
this
.
logClient
.
log
(
pobj
,
req
,
null
,
e
.
stack
)
console
.
log
(
e
.
stack
,
"出现异常,请联系管理员......."
);
return
system
.
getResultFail
(
-
200
,
"出现异常,请联系管理员"
);
return
system
.
getResultFail
(
-
200
,
e
.
message
?
e
.
message
:
"出现异常,请联系管理员"
);
}
}
}
...
...
center-manage/app/base/service/impl/auth/userSve.js
View file @
15ba7beb
...
...
@@ -71,7 +71,10 @@ class UserService extends ServiceBase {
p
.
nickName
=
p
.
userName
;
}
//检查是否已经存在同名账号
let
existOne
=
await
this
.
dao
.
model
.
findOne
({
where
:{
userName
:
p
.
userName
}})
if
(
existOne
){
throw
new
Error
(
"平台中已存在相同的账号."
);
}
return
this
.
db
.
transaction
(
async
function
(
t
)
{
//对于租户类型注册,创建一个默认公司,公司名称xxxx的公司
...
...
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