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
98ee23d2
Commit
98ee23d2
authored
Jun 21, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
29b8d137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
center-manage/app/base/api/impl/auth/accessAuth.js
+1
-4
center-manage/app/base/service/impl/auth/userSve.js
+2
-2
No files found.
center-manage/app/base/api/impl/auth/accessAuth.js
View file @
98ee23d2
...
...
@@ -4,9 +4,6 @@ var settings = require("../../../../config/settings");
class
AccessAuthAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
appS
=
system
.
getObject
(
"service.common.appSve"
);
this
.
apitradeSvr
=
system
.
getObject
(
"service.common.apitradeSve"
);
this
.
authUtils
=
system
.
getObject
(
"util.businessManager.authUtils"
);
this
.
userSve
=
system
.
getObject
(
"service.auth.userSve"
);
}
...
...
@@ -30,7 +27,7 @@ class AccessAuthAPI extends APIBase {
return
system
.
getResult
(
s
)
}
async
getBizUserForDelivery
(
p
,
q
,
req
){
let
s
=
await
this
.
userSve
.
getBizUserForDelivery
(
p
.
clientMobile
,
p
.
spName
,
p
.
productCatName
,
p
.
skucode
,
,
p
.
regionName
)
let
s
=
await
this
.
userSve
.
getBizUserForDelivery
(
p
.
clientMobile
,
p
.
spName
,
p
.
productCatName
,
p
.
skucode
,
p
.
regionName
)
return
system
.
getResult
(
s
)
}
classDesc
()
{
...
...
center-manage/app/base/service/impl/auth/userSve.js
View file @
98ee23d2
...
...
@@ -399,7 +399,7 @@ class UserService extends ServiceBase {
console
.
log
(
companyFind
)
let
users
=
companyFind
.
us
let
cansels
=
users
.
filter
(
u
=>
{
if
(
regionName
&&
regionName
!=
""
){
if
(
regionName
&&
regionName
!=
""
&&
u
.
regiontags
){
if
(
u
.
isAllocated
&&
u
.
skilltags
.
indexOf
(
productCatName
)
>=
0
&&
u
.
regiontags
.
indexOf
(
regionName
)
>=
0
)
{
return
true
}
else
{
...
...
@@ -497,7 +497,7 @@ class UserService extends ServiceBase {
});
let
users
=
companyFind
.
us
let
cansels
=
users
.
filter
(
u
=>
{
if
(
regionName
&&
regionName
!=
""
){
if
(
regionName
&&
regionName
!=
""
&&
u
.
regiontags
){
if
(
u
.
isAllocated
&&
u
.
skilltags
.
indexOf
(
productCatName
)
>=
0
&&
u
.
regiontags
.
indexOf
(
regionName
)
>=
0
)
{
return
true
}
else
{
...
...
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