Commit 04c2194c by 庄冰

提交需求

parent 14431f35
...@@ -26,6 +26,7 @@ module.exports = (db, DataTypes) => { ...@@ -26,6 +26,7 @@ module.exports = (db, DataTypes) => {
original_need:DataTypes.STRING,//原始需求 original_need:DataTypes.STRING,//原始需求
region:DataTypes.STRING,//地区 region:DataTypes.STRING,//地区
business_id:DataTypes.STRING,//云服产品id business_id:DataTypes.STRING,//云服产品id
push_status:DataTypes.INTEGER,
notes: DataTypes.STRING notes: DataTypes.STRING
}, { }, {
paranoid: true,//假的删除 paranoid: true,//假的删除
......
...@@ -19,7 +19,7 @@ class NeedinfoService extends ServiceBase { ...@@ -19,7 +19,7 @@ class NeedinfoService extends ServiceBase {
return res; return res;
} }
var createRes = await this.dao.create(res); var createRes = await this.dao.create(res);
this.pushMediaNeed2Queue(createRes.id);
return system.getResultSuccess(); return system.getResultSuccess();
} }
...@@ -55,31 +55,30 @@ class NeedinfoService extends ServiceBase { ...@@ -55,31 +55,30 @@ class NeedinfoService extends ServiceBase {
ab["channel_name"] = channel.name; ab["channel_name"] = channel.name;
return ab; return ab;
} }
//推送需求至队列 //推送需求至队列
// async pushMediaNeed2Queue(id) { async pushMediaNeed2Queue(id) {
// try { try {
// if (!id) { if (!id) {
// return; return;
// } }
// var url = "http://sytxpublic-msgq-service.chaolai/api/queueAction/producer/springBoard"; var url = "http://sytxpublic-msgq-service.chaolai/api/queueAction/producer/springBoard";
// var obj = { var obj = {
// "actionType": "produceData",// Y 功能名称 "actionType": "produceData",// Y 功能名称
// "actionBody": { "actionBody": {
// "pushUrl": "https://mmc.gongsibao.com/external/action/template/springBoard",// Y 推送地址 "pushUrl": "https://mmc.gongsibao.com/external/action/template/springBoard",// Y 推送地址
// "actionType": "pushMarketplatFormInfo2Fq",// Y 推送地址接收时的功能名称 "actionType": "pushAggregationNeedInfo2fq",// Y 推送地址接收时的功能名称
// "identifyCode": "marketmedia-pushneed2fq",// Y 操作的业务标识 "identifyCode": "marketmedia-pushneed2fq",// Y 操作的业务标识
// "messageBody": { // Y 推送的业务消息,必须有一项对象属性值 "messageBody": { // Y 推送的业务消息,必须有一项对象属性值
// "id": id "id": id
// } }
// } }
// }; };
// // var result = await this.execClient.execPost(obj, url); // var result = await this.execClient.execPost(obj, url);
// // console.log(JSON.stringify(result), "result....push...."); // console.log(JSON.stringify(result), "result....push....");
// } catch (e) { } catch (e) {
// console.log(e, "pushMediaNeed2Queue++++++++++++++++++++++++++++++++++++") console.log(e, "pushMediaNeed2Queue++++++++++++++++++++++++++++++++++++")
// } }
// } }
} }
module.exports = NeedinfoService; module.exports = NeedinfoService;
\ No newline at end of file
...@@ -16,7 +16,7 @@ var settings = { ...@@ -16,7 +16,7 @@ var settings = {
salt: "%iatpD1gcxz7iF#B", salt: "%iatpD1gcxz7iF#B",
defaultpwd: "gsb2020", defaultpwd: "gsb2020",
basepath: path.normalize(path.join(__dirname, '../..')), basepath: path.normalize(path.join(__dirname, '../..')),
port: process.env.NODE_PORT || 8002, port: process.env.NODE_PORT || 8003,
logindex: "center_manage", logindex: "center_manage",
appname: "gsb_marketplat", appname: "gsb_marketplat",
kongurl: function () { if (this.env == "dev") { var localsettings = require("./localsettings"); return localsettings.kongurl; } else { return ENVINPUT.KONG_ADMIAN; } }, kongurl: function () { if (this.env == "dev") { var localsettings = require("./localsettings"); return localsettings.kongurl; } else { return ENVINPUT.KONG_ADMIAN; } },
......
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