Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
ba4e19f6
Commit
ba4e19f6
authored
Aug 04, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/center-channel' into center-channel
parents
c26d7a96
08472982
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
25 deletions
+45
-25
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
+24
-10
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+19
-14
center-channel/app/config/settings.js
+2
-1
No files found.
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
View file @
ba4e19f6
...
...
@@ -48,12 +48,12 @@ class QcCenterOrderService extends AppServiceBase {
CompanyName
:
solution
.
CompanyName
,
IcpType
:
solution
.
IcpType
,
CompanyAddress
:
solution
.
CompanyAddress
,
Area
:
solution
.
Area
,
Note
:
solution
.
Note
};
if
(
needsolution
.
channelSolutionNo
)
{
if
(
needsolution
.
channelSolutionNo
)
{
pushObj
[
"BizId"
]
=
needsolution
.
channelSolutionNo
;
}
var
self
=
this
;
//推送方案
this
.
pushIcpSolution
(
pushObj
,
needsolution
.
solutionNo
,
pobj
.
appInfo
,
self
);
await
this
.
pushIcpSolution
(
pushObj
,
needsolution
.
solutionNo
,
pobj
.
appInfo
,
self
);
return
system
.
getResultSuccess
();
}
return
res
;
...
...
@@ -76,7 +76,21 @@ class QcCenterOrderService extends AppServiceBase {
var
a
=
await
self
.
reqCenterOrderApi
(
reqObj2
);
//保存渠道方案id
if
(
a
&&
a
.
status
==
0
)
{
//推送方案确认信息
await
self
.
aliclient
.
reqbyget
({
action
:
"ConfirmIntention"
,
reqbody
:{
BizId
:
pushObj
.
IntentionBizId
},
apiVersion
:
"2019-05-08"
});
var
confirmRes
=
await
self
.
aliclient
.
reqbyget
({
action
:
"ConfirmIntention"
,
reqbody
:
{
BizId
:
pushObj
.
IntentionBizId
},
apiVersion
:
"2019-05-08"
});
if
(
confirmRes
&&
confirmRes
.
status
==
0
&&
confirmRes
.
data
)
{
var
confirmResData
=
confirmRes
.
data
;
if
(
confirmResData
.
confirmUrl
)
{
var
reqObj3
=
{
actionType
:
"receiveIcpConfirmUrl"
,
appInfo
:
appInfo
,
actionBody
:
{
solutionNo
:
solutionNo
,
confirmUrl
:
confirmResData
.
confirmUrl
}
};
var
a
=
await
self
.
reqCenterOrderApi
(
reqObj3
);
//保存用户确认方案url
}
}
}
}
}
...
...
@@ -96,7 +110,7 @@ class QcCenterOrderService extends AppServiceBase {
BizId
:
ab
.
BizId
,
Note
:
ab
.
Note
};
//关闭方案
this
.
aliclient
.
reqbyget
({
action
:
"CloseIcpProduce"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
this
.
aliclient
.
reqbyget
({
action
:
"CloseIcpProduce"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
return
system
.
getResultSuccess
();
}
return
res
;
...
...
@@ -132,7 +146,7 @@ class QcCenterOrderService extends AppServiceBase {
};
var
self
=
this
;
//推送方案材料
self
.
aliclient
.
reqbyget
({
action
:
"SavePartnerSubmitMaterial"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
self
.
aliclient
.
reqbyget
({
action
:
"SavePartnerSubmitMaterial"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
return
system
.
getResultSuccess
();
}
return
res
;
...
...
@@ -143,12 +157,12 @@ class QcCenterOrderService extends AppServiceBase {
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
//推送数据至阿里
var
pushObj
=
{
BizId
:
res
.
data
.
BizId
,
OfficialFileURL
:
res
.
data
.
OfficialFileURL
,
ApplicationStatus
:
res
.
data
.
ApplicationStatus
BizId
:
res
.
data
.
BizId
,
OfficialFileURL
:
res
.
data
.
OfficialFileURL
,
ApplicationStatus
:
res
.
data
.
ApplicationStatus
};
//推送状态变更
this
.
aliclient
.
reqbyget
({
action
:
"AcceptPartnerNotification"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
this
.
aliclient
.
reqbyget
({
action
:
"AcceptPartnerNotification"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
return
system
.
getResultSuccess
();
}
return
res
;
...
...
@@ -164,7 +178,7 @@ class QcCenterOrderService extends AppServiceBase {
BizId
:
needsolution
.
channelSolutionNo
,
Note
:
ab
.
note
};
//关闭方案
this
.
aliclient
.
reqbyget
({
action
:
"CloseIcpProduce"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
this
.
aliclient
.
reqbyget
({
action
:
"CloseIcpProduce"
,
reqbody
:
pushObj
,
apiVersion
:
"2019-05-08"
});
return
system
.
getResultSuccess
();
}
return
res
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
ba4e19f6
...
...
@@ -219,7 +219,7 @@ class UtilsNeedService extends AppServiceBase {
self
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
"pushCloseICPNeed"
);
return
system
.
getResultSuccess
();
}
else
{
return
system
.
getResult
(
null
,
"close fail 100389"
);
return
system
.
getResult
(
null
,
"close fail 100389
"
);
}
}
...
...
@@ -374,35 +374,38 @@ class UtilsNeedService extends AppServiceBase {
}
async
writeCommunicationLog
(
pobj
)
{
if
(
!
pobj
.
actionBody
.
BizId
)
{
return
system
.
getResult
(
null
,
"actionBody.BizId can not be empty,100491"
);
if
(
!
pobj
.
actionBody
.
intention
BizId
)
{
return
system
.
getResult
(
null
,
"actionBody.
intention
BizId can not be empty,100491"
);
}
if
(
!
pobj
.
actionBody
.
N
ote
)
{
return
system
.
getResult
(
null
,
"actionBody.
N
ote can not be empty,100492"
);
if
(
!
pobj
.
actionBody
.
n
ote
)
{
return
system
.
getResult
(
null
,
"actionBody.
n
ote can not be empty,100492"
);
}
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
.
BizId
,
Note
:
pobj
.
actionBody
.
N
ote
},
apiVersion
:
"2019-05-08"
});
let
res
=
await
self
.
aliclient
.
reqbyget
({
action
:
"WriteCommunicationLog"
,
reqbody
:
{
BizId
:
pobj
.
actionBody
.
intentionBizId
,
Note
:
pobj
.
actionBody
.
n
ote
},
apiVersion
:
"2019-05-08"
});
return
result
;
}
async
queryExpertApplyCommunicationLogs
(
pobj
)
{
if
(
!
pobj
.
actionBody
.
BizId
)
{
return
system
.
getResult
(
null
,
"actionBody.BizId can not be empty,100493"
);
if
(
!
pobj
.
actionBody
.
intention
BizId
)
{
return
system
.
getResult
(
null
,
"actionBody.
intention
BizId can not be empty,100493"
);
}
if
(
!
pobj
.
actionBody
.
U
serFeedBack
)
{
return
system
.
getResult
(
null
,
"actionBody.
U
serFeedBack can not be empty,100494"
);
if
(
!
pobj
.
actionBody
.
u
serFeedBack
)
{
return
system
.
getResult
(
null
,
"actionBody.
u
serFeedBack can not be empty,100494"
);
}
let
res
=
await
self
.
aliclient
.
reqbyget
({
action
:
"queryExpertApplyCommunicationLogs"
,
reqbody
:
{
BeginTime
:
pobj
.
actionBody
.
BeginTime
?
pobj
.
actionBody
.
BeginTime
:
""
,
EndTime
:
pobj
.
actionBody
.
EndTime
?
pobj
.
actionBody
.
EndTime
:
""
,
BizId
:
pobj
.
actionBody
.
BizId
,
UserFeedBack
:
pobj
.
actionBody
.
UserFeedBack
,
BizId
:
pobj
.
actionBody
.
intentionBizId
,
UserFeedBack
:
pobj
.
actionBody
.
userFeedBack
,
PageNum
:
pobj
.
actionBody
.
pageNum
||
1
,
PageSize
:
pobj
.
actionBody
.
pageSize
||
10
,
apiVersion
:
"2019-05-08"
}
});
console
.
log
(
res
);
return
res
;
}
...
...
@@ -427,4 +430,7 @@ class UtilsNeedService extends AppServiceBase {
module
.
exports
=
UtilsNeedService
;
// var a=new UtilsNeedService();
// a.test1();
\ No newline at end of file
// a.queryExpertApplyCommunicationLogs({intentionBizId:20200803095203000001,userFeedBack:true});
center-channel/app/config/settings.js
View file @
ba4e19f6
...
...
@@ -60,7 +60,8 @@ var settings = {
},
qifuH5PayNotifyUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://gsb.qifu.gongsibao.com:4012/tlpay/notify"
;
// return "http://gsb.qifu.gongsibao.com:4012/tlpay/notify";
return
"http://gsb.qifu-dev.gongsibao.com/tlpay/notify"
// 2020 0804 lin 修改测试环境tl回调地址
}
else
{
return
"http://gsb.qifu.gongsibao.com/tlpay/notify"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment