Commit 622577ac by 兰国旗

Merge branch 'gsb-marketplat-mag' of gitlab.gongsibao.com:jiangyong/zhichan into gsb-marketplat-mag

parents 6c435b25 93f776b8
...@@ -6,6 +6,7 @@ class NeedinfoService extends ServiceBase { ...@@ -6,6 +6,7 @@ class NeedinfoService extends ServiceBase {
constructor() { constructor() {
super("aggregation", ServiceBase.getDaoName(NeedinfoService)); super("aggregation", ServiceBase.getDaoName(NeedinfoService));
this.execClient = system.getObject("util.execClient"); this.execClient = system.getObject("util.execClient");
this.fqUtilsSve = system.getObject("service.common.fqUtilsSve");
// this.launchchannelDao = system.getObject("dao.configmag.launchchannelDao"); // this.launchchannelDao = system.getObject("dao.configmag.launchchannelDao");
} }
//推送聚合页需求至蜂擎 //推送聚合页需求至蜂擎
...@@ -41,6 +42,8 @@ class NeedinfoService extends ServiceBase { ...@@ -41,6 +42,8 @@ class NeedinfoService extends ServiceBase {
console.log(pushRes,"pushRes############################3"); console.log(pushRes,"pushRes############################3");
if(pushRes && pushRes.data && pushRes.code && pushRes.code=="200" && pushRes.success ){//推送成功 if(pushRes && pushRes.data && pushRes.code && pushRes.code=="200" && pushRes.success ){//推送成功
await this.dao.update({id:needinfo.id,push_status:1}); await this.dao.update({id:needinfo.id,push_status:1});
}else if( pushRes && pushRes.errorMsg){
await this.dao.update({id:needinfo.id,push_status:2,notes:pushRes.errorMsg});
}else{ }else{
await this.dao.update({id:needinfo.id,push_status:2}); await this.dao.update({id:needinfo.id,push_status:2});
} }
...@@ -125,12 +128,8 @@ class NeedinfoService extends ServiceBase { ...@@ -125,12 +128,8 @@ class NeedinfoService extends ServiceBase {
module.exports = NeedinfoService; module.exports = NeedinfoService;
// var task = new NeedinfoService(); // var task = new NeedinfoService();
// var obj={ // var obj={
// channel_code:"iqiyi", // id:1
// start_date:"2020-09-07 08:03:08",
// end_date:"2020-09-07 08:03:08",
// from:0,
// size:100
// }; // };
// task.getbrowsingrecordlist(obj).then(d=>{ // task.pushAggregationNeedInfo2fq(obj).then(d=>{
// console.log(JSON.stringify(d),"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); // console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
// }); // });
\ No newline at end of file
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