Commit c9312bfb by 王栋源

wdy

parent e1e70f48
...@@ -65,14 +65,14 @@ class UtilsNeedService extends AppServiceBase { ...@@ -65,14 +65,14 @@ class UtilsNeedService extends AppServiceBase {
if (reqUrl) { if (reqUrl) {
var url = this.centerOrderUrl + reqUrl; var url = this.centerOrderUrl + reqUrl;
} }
var self=this; var self = this;
pobj.actionType = "receiveIcpFeedback"; pobj.actionType = "receiveIcpFeedback";
// 2020 0803 lin 修改; // 2020 0803 lin 修改;
if(pobj.intentionStatus) { if (pobj.intentionStatus) {
// 如果需求当前字段为5(已关闭)则通知fq // 如果需求当前字段为5(已关闭)则通知fq
if(pobj.intentionStatus == 5) { if (pobj.intentionStatus == 5) {
self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed"); self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
} }
} }
var rtn = await this.execClient.execPost(pobj, url); var rtn = await this.execClient.execPost(pobj, url);
var data = JSON.parse(rtn.stdout); var data = JSON.parse(rtn.stdout);
...@@ -215,7 +215,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -215,7 +215,7 @@ class UtilsNeedService extends AppServiceBase {
} }
} }
// 推送ali // 推送ali
var a=await self.aliclient.reqbyget({ action: "CloseIntention", reqbody: { BizId: actionBody.channelNeedNo, Note: actionBody.note }, apiVersion: "2019-05-08" }); var a = await self.aliclient.reqbyget({ action: "CloseIntention", reqbody: { BizId: actionBody.channelNeedNo, Note: actionBody.note }, apiVersion: "2019-05-08" });
console.log(a); console.log(a);
self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed"); self.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
return system.getResultSuccess(); return system.getResultSuccess();
...@@ -314,10 +314,10 @@ class UtilsNeedService extends AppServiceBase { ...@@ -314,10 +314,10 @@ class UtilsNeedService extends AppServiceBase {
var fileName = tmpFileName.substr(tmpFileName.lastIndexOf("/") + 1, tmpFileName.lenght); var fileName = tmpFileName.substr(tmpFileName.lastIndexOf("/") + 1, tmpFileName.lenght);
// 2020 0803 lin 修改; // 2020 0803 lin 修改;
var urlJson = this.urlSplit(docUrl); var urlJson = this.urlSplit(docUrl);
if(urlJson["Expires"]){ if (urlJson["Expires"]) {
// url中过期时间与服务器时间对比结果为已过期 // url中过期时间与服务器时间对比结果为已过期
if(urlJson["Expires"] < new Date().getTime()) { if (urlJson["Expires"] < new Date().getTime()) {
return "http://gsb-zc.oss-cn-beijing.aliyuncs.com/"+fileName; return "http://gsb-zc.oss-cn-beijing.aliyuncs.com/" + fileName;
} }
} }
//解码后的文件全名:xxx.pdf //解码后的文件全名:xxx.pdf
...@@ -384,8 +384,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -384,8 +384,7 @@ class UtilsNeedService extends AppServiceBase {
var self = this; var self = this;
var reqUrl = this.centerOrderUrl + "action/need/springBoard"; var reqUrl = this.centerOrderUrl + "action/need/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
let res = await self.aliclient.reqbyget({ action: "WriteCommunicationLog", reqbody: { BizId: pobj.actionBody.intentionBizId, Note: pobj.actionBody.note }, apiVersion: "2019-05-08" }); await self.aliclient.reqbyget({ action: "WriteCommunicationLog", reqbody: { BizId: pobj.actionBody.intentionBizId, Note: pobj.actionBody.note }, apiVersion: "2019-05-08" });
console.log(res);
return system.getResultSuccess(); return system.getResultSuccess();
} }
...@@ -406,17 +405,16 @@ class UtilsNeedService extends AppServiceBase { ...@@ -406,17 +405,16 @@ class UtilsNeedService extends AppServiceBase {
PageSize: pobj.actionBody.pageSize || 10, PageSize: pobj.actionBody.pageSize || 10,
}, apiVersion: "2019-05-08" }, apiVersion: "2019-05-08"
}); });
console.log(res);
return system.getResultSuccess(res); return system.getResultSuccess(res);
} }
urlSplit(url) { urlSplit(url) {
var arr=url.split("?")[1]; //根据?跟个url var arr = url.split("?")[1]; //根据?跟个url
var arr2=arr[1].split("&"); //根据&重新分割参数 var arr2 = arr[1].split("&"); //根据&重新分割参数
var jsonarr={}; //定义一个json对象放置url 参数 var jsonarr = {}; //定义一个json对象放置url 参数
for(var i=0;i<arr2.length;i++){ //循环将参数放到json里面 for (var i = 0; i < arr2.length; i++) { //循环将参数放到json里面
jsonarr[arr2[i].substring(0,1)]=arr2[i].substring(2,3); jsonarr[arr2[i].substring(0, 1)] = arr2[i].substring(2, 3);
} }
return jsonarr; return jsonarr;
} }
......
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