Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
remarketing-yunying
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaobeibei
remarketing-yunying
Commits
46aae887
Commit
46aae887
authored
Jul 18, 2018
by
yaobeibei
Browse files
Options
Browse Files
Download
Plain Diff
master merge oem
parents
44d4fbb0
85b1410d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
30 deletions
+17
-30
api.js
api/api.js
+16
-29
account.vue
src/components/account.vue
+1
-1
No files found.
api/api.js
View file @
46aae887
...
...
@@ -6,16 +6,6 @@ const moment = require('moment')
var
reg
=
/@test.com$|@123.com$|@goyoo.com$|@xiaoyun.com$|^@|^test|@dis.com$|time-stone.cn$|^tangyong|^875652541|@1.com$|@xioayun.com$/i
var
dbpath
=
null
// master test
if
(
process
.
env
.
MONGO
)
{
dbpath
=
process
.
env
.
MONGO
||
'mongodb://10.11.3.123:1301/remarketing'
}
else
{
dbpath
=
'mongodb://localhost:27017/remarketing'
}
var
dbpath_oem
=
null
if
(
process
.
env
.
MONGO
)
{
...
...
@@ -24,11 +14,7 @@ if (process.env.MONGO) {
dbpath_oem
=
'mongodb://localhost:27017/remarketing2'
}
var
db
=
{}
var
db_oem_mtty
=
{}
mongoClient
.
connect
(
dbpath
,
function
(
err
,
res
)
{
mongoClient
.
connect
(
dbpath_oem
,
function
(
err
,
res
)
{
if
(
err
)
return
console
.
log
(
err
)
db
=
res
.
db
(
'remarketing'
)
})
...
...
@@ -745,20 +731,20 @@ app.post('/checkCall', async function (req, res) {
}
})
if
(
item
.
popover
)
{
if
(
choose
===
'zero'
&&
x
.
c
heckStatus
===
undefined
)
{
if
(
choose
===
'zero'
&&
x
.
oemC
heckStatus
===
undefined
)
{
console
.
log
(
choose
)
item
.
status
=
'未审核'
dataArr
.
push
(
item
)
item
=
{}
}
if
(
choose
===
'one'
&&
x
.
c
heckStatus
===
0
)
{
if
(
choose
===
'one'
&&
x
.
oemC
heckStatus
===
0
)
{
console
.
log
(
choose
)
item
.
status
=
'审核未通过'
item
.
disable
=
true
dataArr
.
push
(
item
)
item
=
{}
}
if
(
choose
===
'two'
&&
(
x
.
c
heckStatus
===
1
))
{
if
(
choose
===
'two'
&&
(
x
.
oemC
heckStatus
===
1
))
{
console
.
log
(
choose
)
item
.
status
=
'审核通过'
item
.
disable
=
true
...
...
@@ -767,15 +753,15 @@ app.post('/checkCall', async function (req, res) {
}
if
(
choose
===
'all'
)
{
console
.
log
(
choose
)
if
(
x
.
c
heckStatus
===
undefined
)
{
if
(
x
.
oemC
heckStatus
===
undefined
)
{
item
.
status
=
'未审核'
item
.
disable
=
false
}
if
(
x
.
c
heckStatus
===
0
)
{
if
(
x
.
oemC
heckStatus
===
0
)
{
item
.
status
=
'审核未通过'
item
.
disable
=
true
}
if
(
x
.
c
heckStatus
===
1
)
{
if
(
x
.
oemC
heckStatus
===
1
)
{
item
.
status
=
'审核通过'
item
.
disable
=
true
}
...
...
@@ -801,16 +787,17 @@ app.post('/send', async function (req, res) {
// getSession(sessionID, res)
if
(
status
===
8
)
{
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$unset
:
{
'
c
heckStatus'
:
''
}
})
res
.
send
({
status
:
200
,
message
:
'状态已重置'
})
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$unset
:
{
'
oemC
heckStatus'
:
''
}
})
res
.
send
({
status
:
200
,
message
:
'状态已重置
(防止误通过)
'
})
}
if
(
status
===
0
)
{
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
c
heckStatus'
:
0
,
pre
:
false
,
number
:
0
}
})
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
oemC
heckStatus'
:
0
,
pre
:
false
,
number
:
0
}
})
res
.
send
({
status
:
200
,
message
:
'审核未通过'
})
}
if
(
status
===
1
)
{
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
c
heckStatus'
:
1
}
})
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
oemC
heckStatus'
:
1
}
})
await
db
.
collection
(
'dspCallGroups'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
groupId
)
},
{
$set
:
{
'interestlist'
:
interestlist
,
'hostlist'
:
hostlist
}
})
res
.
send
({
status
:
200
,
message
:
'审核通过'
})
}
...
...
@@ -884,10 +871,10 @@ app.post('/getCheckNote', async function (req, res) {
}
})
if
(
operatorId
+
''
===
'联通'
+
''
&&
(
item
.
popover
.
operator
===
undefined
||
item
.
popover
.
operator
===
'联通'
+
''
))
{
if
(
x
.
c
heckStatus
===
0
)
{
if
(
x
.
oemC
heckStatus
===
0
)
{
item
.
status
=
'审核未通过'
item
.
disable
=
true
}
else
if
(
x
.
c
heckStatus
===
1
)
{
}
else
if
(
x
.
oemC
heckStatus
===
1
)
{
item
.
status
=
'审核通过'
item
.
disable
=
true
}
else
{
...
...
@@ -970,13 +957,13 @@ app.post('/sendCheckNote', async function (req, res) {
if
(
operatorId
===
'联通'
)
{
await
db
.
collection
(
'dspTask'
).
find
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
}).
toArray
(
async
(
err
,
rep
)
=>
{
if
(
status
===
1
)
{
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
c
heckStatus'
:
0
}
})
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
oemC
heckStatus'
:
0
}
})
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'status'
:
1
}
})
await
db
.
collection
(
'bills'
).
update
({
taskID
:
mongodb
.
ObjectId
(
taskId
),
pre
:
true
},
{
$set
:
{
pre
:
false
,
number
:
0
}
})
res
.
send
({
status
:
200
,
message
:
'审核未通过'
})
}
if
(
status
===
2
)
{
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
c
heckStatus'
:
1
}
})
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'
oemC
heckStatus'
:
1
}
})
res
.
send
({
status
:
200
,
message
:
'审核通过'
})
}
})
...
...
src/components/account.vue
View file @
46aae887
<
template
>
<el-container>
<el-header>
<h4>
账户权限控制
</h4>
<h4>
test
</h4>
</el-header>
<el-main>
<el-row>
...
...
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