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
21858c7d
Commit
21858c7d
authored
Jun 02, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dg
parent
10782909
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
xgg-deliver/app/base/controller/impl/uc/userCtl.js
+1
-12
xgg-deliver/app/base/system.js
+1
-1
No files found.
xgg-deliver/app/base/controller/impl/uc/userCtl.js
View file @
21858c7d
...
...
@@ -20,18 +20,7 @@ class UserCtl extends CtlBase {
async
login
(
pobj
,
pobj2
,
req
,
res
)
{
var
loginName
=
this
.
trim
(
pobj
.
loginName
);
var
password
=
this
.
trim
(
pobj
.
password
);
// var captchaKey = this.trim(pobj.captchaKey);
// var captchaCode = this.trim(pobj.captchaCode);
try
{
// var vrs = await this.captchaSve.valid({
// key: captchaKey,
// code: captchaCode,
// });
// if (vrs.status !== 0) {
// return vrs;
// }
var
loginUser
=
await
this
.
deliverSve
.
login
({
ucname
:
loginName
,
password
:
password
,
...
...
@@ -39,7 +28,6 @@ class UserCtl extends CtlBase {
if
(
loginUser
.
status
!=
0
)
{
return
loginUser
;
}
loginUser
=
loginUser
.
data
;
var
loginKey
=
await
this
.
setLogin
(
loginUser
);
let
ntapi
=
settings
.
ntapi
();
...
...
@@ -55,6 +43,7 @@ class UserCtl extends CtlBase {
taxLoginUrl
:
ntapi
.
taxLoginUrl
+
`?username=
${
loginUser
.
ucname
}
&cookieId=
${
subsid
}
&target=tax&baseurl=
${
loginBaseUrl
}
`
,
finLoginUrl
:
ntapi
.
taxLoginUrl
+
`?username=
${
loginUser
.
ucname
}
&cookieId=
${
subsid
}
&baseurl=
${
loginBaseUrl
}
`
,
loginname
:
loginUser
.
ucname
,
deliver_name
:
loginUser
.
deliver
.
name
,
auth
:
loginUser
.
auth
,
isManager
:
loginUser
.
isManager
,
menus
:
{
gtArr
:
this
.
getOrderMenu
(
loginUser
),
pjArr
:
this
.
getInvoiceMenu
(
loginUser
)},
...
...
xgg-deliver/app/base/system.js
View file @
21858c7d
...
...
@@ -186,7 +186,7 @@ class System {
var
wangkun
=
"http://192.168.201.149"
return
{
// 公共服务
common
:
domain
+
":3102"
+
path
,
common
:
domain
2
+
":3102"
+
path
,
// common: "http://127.0.0.1:3102" + path,
// common:wangkun+":3102"+ path,
...
...
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