Commit f1895544 by 王勇飞

Merge branch 'center-manage' of gitlab.gongsibao.com:jiangyong/zhichan into center-manage

parents bce07b75 18a52693
...@@ -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("已经存在相同的统一账号名称!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment