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
f1895544
Commit
f1895544
authored
Sep 07, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-manage' of gitlab.gongsibao.com:jiangyong/zhichan into center-manage
parents
bce07b75
18a52693
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
center-manage/app/base/service/impl/auth/userSve.js
+2
-2
No files found.
center-manage/app/base/service/impl/auth/userSve.js
View file @
f1895544
...
@@ -289,7 +289,7 @@ class UserService extends ServiceBase {
...
@@ -289,7 +289,7 @@ class UserService extends ServiceBase {
//修改中心密码
//修改中心密码
async
cmodifypwd
(
uname
,
newpwd
,
cmpid
)
{
async
cmodifypwd
(
uname
,
newpwd
,
cmpid
)
{
try
{
try
{
let
rtn
=
await
system
.
postJsonTypeReq
(
UserService
.
consumerUrl
(
uname
),
{
tags
:
[
"cmp_"
+
cmpid
,
"pass_"
+
newpwd
]
},
"PATCH"
)
let
rtn
=
await
system
.
postJsonTypeReq
(
UserService
.
consumerUrl
(
uname
),
{
tags
:
[
"cmp_"
+
cmpid
,
"pass_"
+
"null"
]
},
"PATCH"
)
console
.
log
(
rtn
)
console
.
log
(
rtn
)
if
(
rtn
.
statusCode
==
200
)
{
if
(
rtn
.
statusCode
==
200
)
{
return
rtn
.
data
;
return
rtn
.
data
;
...
@@ -304,7 +304,7 @@ class UserService extends ServiceBase {
...
@@ -304,7 +304,7 @@ class UserService extends ServiceBase {
async
cregister
(
uname
,
cmpid
,
pass
,
uid
)
{
async
cregister
(
uname
,
cmpid
,
pass
,
uid
)
{
try
{
try
{
var
rtn2
=
null
;
var
rtn2
=
null
;
let
rtn
=
await
system
.
postJsonTypeReq
(
UserService
.
newConsumerUrl
(),
{
username
:
uname
,
custom_id
:
uid
,
tags
:
[
"cmp_"
+
cmpid
,
"pass_"
+
pass
]
})
let
rtn
=
await
system
.
postJsonTypeReq
(
UserService
.
newConsumerUrl
(),
{
username
:
uname
,
custom_id
:
uid
,
tags
:
[
"cmp_"
+
cmpid
,
"pass_"
+
"null"
]
})
console
.
log
(
rtn
)
console
.
log
(
rtn
)
if
(
rtn
.
statusCode
==
409
)
{
if
(
rtn
.
statusCode
==
409
)
{
throw
new
Error
(
"已经存在相同的统一账号名称!"
);
throw
new
Error
(
"已经存在相同的统一账号名称!"
);
...
...
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