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
1febb1b9
Commit
1febb1b9
authored
Jun 20, 2018
by
yaobeibei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset
parent
1530b8ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
api.js
api/api.js
+9
-9
checkCall.vue
src/components/checkCall.vue
+1
-1
No files found.
api/api.js
View file @
1febb1b9
...
...
@@ -703,7 +703,7 @@ app.post('/checkCall', async function (req, res) {
let
dataArr
=
[]
callName
.
forEach
(
x
=>
{
let
item
=
{}
item
.
oem
=
'微聚
和
'
item
.
oem
=
'微聚
合
'
item
.
preNum
=
x
.
preNum
/
3
if
(
x
.
pre
===
false
)
{
item
.
sendNum
=
x
.
number
/
3
...
...
@@ -898,7 +898,7 @@ app.post('/send', async function (req, res) {
// getSession(sessionID, res)
if
(
status
===
8
)
{
if
(
oem
===
'微聚合'
)
{
if
(
oem
===
'微聚合'
||
oem
===
null
||
oem
===
undefined
)
{
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$unset
:
{
'checkStatus'
:
''
}
})
}
else
{
await
db_oem_mtty
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$unset
:
{
'checkStatus'
:
''
}
})
...
...
@@ -907,7 +907,7 @@ app.post('/send', async function (req, res) {
}
if
(
status
===
0
)
{
if
(
oem
===
'微聚合'
)
{
if
(
oem
===
'微聚合'
||
oem
===
null
||
oem
===
undefined
)
{
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'checkStatus'
:
0
,
pre
:
false
,
number
:
0
}
})
}
else
{
await
db_oem_mtty
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'checkStatus'
:
0
,
pre
:
false
,
number
:
0
}
})
...
...
@@ -915,7 +915,7 @@ app.post('/send', async function (req, res) {
res
.
send
({
status
:
200
,
message
:
'审核未通过'
})
}
if
(
status
===
1
)
{
if
(
oem
===
'微聚合'
)
{
if
(
oem
===
'微聚合'
||
oem
===
null
||
oem
===
undefined
)
{
await
db
.
collection
(
'bills'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'checkStatus'
:
1
}
})
await
db
.
collection
(
'dspCallGroups'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
groupId
)
},
{
$set
:
{
'interestlist'
:
interestlist
,
'hostlist'
:
hostlist
}
})
}
else
{
...
...
@@ -1171,10 +1171,10 @@ app.post('/sendCheckNote', async function (req, res) {
res
.
send
({
status
:
200
,
message
:
'状态已重置'
})
}
if
(
operatorId
===
'联通'
)
{
if
(
operatorId
===
'联通'
||
operatorId
===
null
||
operatorId
===
undefined
)
{
await
db
.
collection
(
'dspTask'
).
find
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
}).
toArray
(
async
(
err
,
rep
)
=>
{
if
(
status
===
1
)
{
if
(
oem
===
'微聚合'
)
{
if
(
oem
===
'微聚合'
||
oem
===
null
||
oem
===
undefined
)
{
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'checkStatus'
:
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
}
})
...
...
@@ -1186,7 +1186,7 @@ app.post('/sendCheckNote', async function (req, res) {
res
.
send
({
status
:
200
,
message
:
'审核未通过'
})
}
if
(
status
===
2
)
{
if
(
oem
===
'微聚合'
)
{
if
(
oem
===
'微聚合'
||
oem
===
null
||
oem
===
undefined
)
{
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'checkStatus'
:
1
}
})
}
else
{
await
db_oem_mtty
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'checkStatus'
:
1
}
})
...
...
@@ -1200,7 +1200,7 @@ app.post('/sendCheckNote', async function (req, res) {
console
.
log
(
rep
)
if
(
!
rep
[
0
].
status
)
{
if
(
status
===
2
)
{
if
(
oem
===
'微聚合'
)
{
if
(
oem
===
'微聚合'
||
oem
===
null
||
oem
===
undefined
)
{
await
db
.
collection
(
'dspTask'
).
update
({
'_id'
:
mongodb
.
ObjectId
(
taskId
)
},
{
$set
:
{
'status'
:
2
,
'sendNum'
:
sendNum
}
})
await
db
.
collection
(
'bills'
).
update
({
taskID
:
mongodb
.
ObjectId
(
taskId
),
pre
:
true
},
{
$set
:
{
pre
:
false
,
number
:
sendNum
*
0.5
}
});
}
else
{
...
...
@@ -1211,7 +1211,7 @@ app.post('/sendCheckNote', async function (req, res) {
res
.
send
({
status
:
200
,
message
:
'审核通过,短信发送中'
})
}
if
(
status
===
1
)
{
if
(
oem
===
'微聚合'
)
{
if
(
oem
===
'微聚合'
||
oem
===
null
||
oem
===
undefined
)
{
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
}
});
}
else
{
...
...
src/components/checkCall.vue
View file @
1febb1b9
...
...
@@ -350,7 +350,7 @@
let
interestlist
=
this
.
interestlist
let
hostlist
=
this
.
hostlist
let
currentdata
=
this
.
currentdata
let
oem
=
currentdata
?
currentdata
.
name
:
row
.
oem
let
oem
=
currentdata
?
currentdata
.
oem
:
row
.
oem
let
taskId
=
currentdata
?
currentdata
.
name
:
row
.
name
let
groupId
=
currentdata
?
currentdata
.
groupID
:
row
.
groupID
this
.
dialogFormVisible
=
false
...
...
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