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
9c0b5034
Commit
9c0b5034
authored
Jun 15, 2018
by
yaobeibei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change checkState to oemCheckState
parent
4e4c82bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
api.js
api/api.js
+15
-14
No files found.
api/api.js
View file @
9c0b5034
...
...
@@ -657,20 +657,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
...
...
@@ -679,15 +679,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
}
...
...
@@ -712,16 +712,17 @@ app.post('/send', async function (req, res) {
let
{
taskId
,
groupId
,
interestlist
,
hostlist
,
status
}
=
req
.
body
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
:
'审核通过'
})
}
...
...
@@ -794,10 +795,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
{
...
...
@@ -879,13 +880,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
:
'审核通过'
})
}
})
...
...
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