Commit 98ee23d2 by 蒋勇

d

parent 29b8d137
......@@ -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() {
......
......@@ -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 {
......
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