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
571332c6
Commit
571332c6
authored
Jul 30, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
c45cad1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
57 deletions
+62
-57
igirl-channel-gateway/app/base/service/impl/common/gatewaypushlogSve.js
+62
-57
No files found.
igirl-channel-gateway/app/base/service/impl/common/gatewaypushlogSve.js
View file @
571332c6
...
...
@@ -280,71 +280,75 @@ class GatewaypushlogService extends ServiceBase {
pobj
.
area
=
"海南"
;
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"area参数错误"
)
;
pobj
.
area
=
""
;
break
;
}
var
param
=
{
requestId
:
self
.
getUUID
(),
requestUrl
:
"/api/ali/tm/consultation/submit"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"submitNeed"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
}
await
self
.
create
(
param
);
return
self
.
getResultSuccess
(
param
.
requestId
);
}
if
(
!
pobj
.
area
)
{
return
self
.
getResultFail
(
"area参数错误"
);
}
var
param
=
{
requestId
:
self
.
getUUID
(),
requestUrl
:
"/api/ali/tm/consultation/submit"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"submitNeed"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
}
await
self
.
create
(
param
);
return
self
.
getResultSuccess
(
param
.
requestId
);
}
//icp需求反馈
async
icpFeedbackSubmit
(
pobj
)
{
var
self
=
this
;
if
(
!
pobj
.
intentionBizId
)
{
return
self
.
getResultFail
(
"intentionBizId不能为空"
);
}
if
(
!
pobj
.
description
)
{
return
self
.
getResultFail
(
"description不能为空"
);
}
if
(
!
pobj
.
intentionStatus
)
{
return
self
.
getResultFail
(
"intentionStatus不能为空"
);
}
var
param
=
{
requestId
:
self
.
getUUID
(),
requestUrl
:
"/api/ali/tm/feedback/submit"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"icpFeedbackSubmit"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
}
await
self
.
create
(
param
);
return
self
.
getResultSuccess
(
param
.
requestId
);
//icp需求反馈
async
icpFeedbackSubmit
(
pobj
)
{
var
self
=
this
;
if
(
!
pobj
.
intentionBizId
)
{
return
self
.
getResultFail
(
"intentionBizId不能为空"
);
}
if
(
!
pobj
.
description
)
{
return
self
.
getResultFail
(
"description不能为空"
);
}
if
(
!
pobj
.
intentionStatus
)
{
return
self
.
getResultFail
(
"intentionStatus不能为空"
);
}
var
param
=
{
requestId
:
self
.
getUUID
(),
requestUrl
:
"/api/ali/tm/feedback/submit"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"icpFeedbackSubmit"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
}
await
self
.
create
(
param
);
return
self
.
getResultSuccess
(
param
.
requestId
);
}
//icp状态变更
async
icpNotify
(
pobj
)
{
var
self
=
this
;
if
(
!
pobj
.
bizId
)
{
return
self
.
getResultFail
(
"bizId不能为空"
);
}
if
(
!
pobj
.
status
)
{
return
self
.
getResultFail
(
"status不能为空"
);
}
pobj
.
action_type
=
"queryOrderState"
;
var
param
=
{
requestId
:
self
.
getUUID
(),
requestUrl
:
"/api/ali/tm/status/notify"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"icpNotify"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
}
await
self
.
create
(
param
);
return
self
.
getResultSuccess
(
param
.
requestId
);
//icp状态变更
async
icpNotify
(
pobj
)
{
var
self
=
this
;
if
(
!
pobj
.
bizId
)
{
return
self
.
getResultFail
(
"bizId不能为空"
);
}
if
(
!
pobj
.
status
)
{
return
self
.
getResultFail
(
"status不能为空"
);
}
pobj
.
action_type
=
"queryOrderState"
;
var
param
=
{
requestId
:
self
.
getUUID
(),
requestUrl
:
"/api/ali/tm/status/notify"
,
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
pushUrl
:
"/action/intentionapi/springBoard"
,
//调用地址
pushActionType
:
"icpNotify"
,
//调用参数
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
}
await
self
.
create
(
param
);
return
self
.
getResultSuccess
(
param
.
requestId
);
}
}
}
module
.
exports
=
GatewaypushlogService
;
\ No newline at end of file
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