Commit 27836cce by 宋毅

tj

parent c4627238
...@@ -350,7 +350,7 @@ class utilsTlBankSve { ...@@ -350,7 +350,7 @@ class utilsTlBankSve {
result = "回调cusorderid参数错误,没有_标识"; result = "回调cusorderid参数错误,没有_标识";
return result; return result;
} }
if (attachList[0] && attachList[0].substr(0, 3) == "qft") { if (attachList[0] && attachList[0].substr(0, 3) == "qft"tmpResult) {
var p = { var p = {
"actionProcess": "actionProcess参数不", "actionProcess": "actionProcess参数不",
"actionType": "receiveCallBackNotify", "actionType": "receiveCallBackNotify",
...@@ -359,8 +359,8 @@ class utilsTlBankSve { ...@@ -359,8 +359,8 @@ class utilsTlBankSve {
}; };
var qftstr = await this.restClient.execPost(p, this.centerChannelUrl + "web/payment/paymentApi/springBoard"); var qftstr = await this.restClient.execPost(p, this.centerChannelUrl + "web/payment/paymentApi/springBoard");
var qftjson = JSON.parse(qftstr.stdout); var qftjson = JSON.parse(qftstr.stdout);
if(qftjson.status>-1){ if (qftjson.status > -1) {
result="success" result = "success"
} }
return result; return result;
} else { } else {
...@@ -368,8 +368,8 @@ class utilsTlBankSve { ...@@ -368,8 +368,8 @@ class utilsTlBankSve {
var payParam = await this.companypayparamDao.getOneByCompanyId(tmpCompanyId, 1); var payParam = await this.companypayparamDao.getOneByCompanyId(tmpCompanyId, 1);
if (!payParam) { if (!payParam) {
result.return_msg = "回调公司没有对应的支付凭证"; result = "回调公司没有对应的支付凭证";
return jsonBuilder.buildObject(result); return result;
} }
var signResult = await this.resultSign(parmas, payParam.pay_key); var signResult = await this.resultSign(parmas, payParam.pay_key);
if (signResult.code != 1) { if (signResult.code != 1) {
...@@ -384,17 +384,14 @@ class utilsTlBankSve { ...@@ -384,17 +384,14 @@ class utilsTlBankSve {
if (parmas.other_company_id && Number(parmas.other_company_id) > 0) { if (parmas.other_company_id && Number(parmas.other_company_id) > 0) {
var otherPayParam = await this.companypayparamDao.getOneByCompanyId(parmas.other_company_id, 1); var otherPayParam = await this.companypayparamDao.getOneByCompanyId(parmas.other_company_id, 1);
if (!otherPayParam) { if (!otherPayParam) {
result.return_msg = "回调其他公司公司没有对应的配置信息"; result = "回调其他公司公司没有对应的配置信息";
return jsonBuilder.buildObject(result); return result;
} }
return await this.opOtherCompanyNotify(otherPayParam.notifyUrl, parmas, "通联回调"); return await this.opOtherCompanyNotify(otherPayParam.notifyUrl, parmas, "通联回调");
}//是别的公司则进行回调别的接口信息 }//是别的公司则进行回调别的接口信息
else { else {
var backResult = await this.opBackNotify(parmas, "通联回调"); var backResult = await this.opBackNotify(parmas, "通联回调");
if (backResult.code != 1) { result = backResult.msg;
result = backResult.msg;
return result;
}
return result; return result;
} }
} }
...@@ -522,7 +519,7 @@ class utilsTlBankSve { ...@@ -522,7 +519,7 @@ class utilsTlBankSve {
其余为事务处理会抛出异常 其余为事务处理会抛出异常
*/ */
async notifyOpDb(obj) { async notifyOpDb(obj) {
var notifyResult = { code: 1, msg: "ok" }; var notifyResult = { code: 1, msg: "success" };
var account_type_list = uiconfig.config.pdict.accountType; var account_type_list = uiconfig.config.pdict.accountType;
var account_type_name = account_type_list[obj.req_accountType]; var account_type_name = account_type_list[obj.req_accountType];
obj.account_type_name = account_type_name; obj.account_type_name = account_type_name;
......
...@@ -7,11 +7,11 @@ var settings={ ...@@ -7,11 +7,11 @@ var settings={
}, },
database:{ database:{
dbname : "igirl", dbname : "igirl",
user : "write", user: "write",
password : "write", password: "write",
config : { config: {
host: '43.247.184.35', host: '43.247.184.35',
port:8899, port: 8899,
dialect: 'mysql', dialect: 'mysql',
operatorsAliases: false, operatorsAliases: false,
pool: { pool: {
......
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