Commit c9312bfb by 王栋源

wdy

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