Commit 516aec8d by 宋毅

修改配置

parent f68a7179
const mongoose = require('mongoose')
class MgDbFactory {
constructor() {
const reqUrl = "mongodb://wdy1:123456@43.247.184.94:27017/phones";
const reqUrl = "mongodb://wdy1:123456@er.es.gongsibao.com:27017/phones";
this.mgdb = mongoose.connect(reqUrl, { useNewUrlParser: true });
}
......
......@@ -68,7 +68,7 @@ module.exports = function (app) {
req.body.action_type = "paySuccess";
var result = await gatewaypushlogSve.paySuccess(req.body, client_ip);
logCtl.info({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "回调处理订单结果:,method=" + req.body.trxcode,
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "回调处理订单结果:,method=" + req.body.action_type,
op: "/api/ali/ic/paySuccess",
content: "回调参数:" + JSON.stringify(req.body) + "回调处理订单结果:" + JSON.stringify(result),
clientIp: client_ip || ""
......@@ -77,7 +77,7 @@ module.exports = function (app) {
return JSON.stringify(result);
} catch (error) {
logCtl.error({
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "记录回调处理结果异常:,method=" + req.body.trxcode,
optitle: (new Date()).Format("yyyy-MM-dd hh:mm:ss") + "记录回调处理结果异常:,method=" + req.body.action_type,
op: "/api/ali/ic/paySuccess",
content: "回调参数:" + JSON.stringify(req.body) + "error:" + error.stack,
clientIp: client_ip || ""
......
......@@ -28,9 +28,9 @@ var settings = {
reqEsAddr: function () {
if (this.env == "dev") {
var localsettings = require("./localsettings");
return "http://43.247.184.94:7200/";//localsettings.reqEsDevUrl;
return "http://er.es.gongsibao.com:7200/";//localsettings.reqEsDevUrl;
} else {
return "http://43.247.184.94:7200/";
return "http://er.es.gongsibao.com:7200/";
}
},
channelApiUrl: function () {//----igirl-channel
......
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