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
3658d1fb
Commit
3658d1fb
authored
May 20, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新接口
parent
624bb99b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
20 deletions
+33
-20
center-channel/app/base/service/impl/receiveSve/icpNeedSve.js
+33
-20
No files found.
center-channel/app/base/service/impl/receiveSve/icpNeedSve.js
View file @
3658d1fb
...
...
@@ -13,11 +13,13 @@ class IcpNeedService extends AppServiceBase {
if
(
!
pobj
.
intentionBizId
)
{
return
system
.
getResult
(
null
,
"actionBody.intentionBizId can not be empty,6000001"
);
}
let
sobj
=
pobj
;
sobj
.
actionBody
=
{
type
:
pobj
.
consultType
};
sobj
.
actionType
=
"getProductTypeInfo"
;
let
productTypeParams
=
{
actionType
:
"getProductTypeInfo"
,
appInfo
:
pobj
.
appInfo
,
actionBody
:
{
type
:
pobj
.
consultType
}
}
let
url
=
settings
.
centerAppUrl
()
+
"action/opProduct/springBoard"
;
let
rtn
=
await
this
.
execClient
.
execPost
(
sobj
,
url
);
let
rtn
=
await
this
.
execClient
.
execPost
(
productTypeParams
,
url
);
if
(
!
rtn
||
!
rtn
.
stdout
)
{
return
system
.
getResultFail
(
-
5015
,
"需求类型查询失败,6000002"
);
}
...
...
@@ -25,18 +27,6 @@ class IcpNeedService extends AppServiceBase {
if
(
productItem
.
status
!=
0
)
{
return
system
.
getResultFail
(
-
5015
,
"需求类型查询失败6000003"
);
}
pobj
.
actionBody
=
{
service_product_id
:
productItem
.
data
.
service_product_id
,
productId
:
productItem
.
data
.
service_product_id
,
appName
:
pobj
.
appInfo
.
app_name
,
type_code
:
productItem
.
data
.
type_code
,
type_name
:
productItem
.
data
.
type_name
,
channel_type_code
:
productItem
.
data
.
channel_type_code
,
channel_type_name
:
productItem
.
data
.
channel_type_name
,
type
:
pobj
.
consultType
||
pobj
.
channel_type_code
,
idempotentId
:
pobj
.
intentionBizId
,
idempotentSourceName
:
pobj
.
appInfo
.
app_name
}
// pobj.actionBody.type = "baidu.icp";
// pobj.actionBody.idempotentSource = "baidu_icp";
...
...
@@ -84,11 +74,34 @@ class IcpNeedService extends AppServiceBase {
// pobj.actionBody.idempotentSource = "yiming.ediwz";
// }
// }
pobj
.
actionBody
.
level
=
"A"
;
pobj
.
actionType
=
"submitNeed"
;
console
.
log
(
"submitNeed--------------------------params----"
,
JSON
.
stringify
(
pobj
));
let
submitNeedParams
=
{
actionType
:
"submitNeed"
,
appInfo
:
pobj
.
appInfo
,
actionBody
:
{
intentionBizId
:
pobj
.
intentionBizId
,
phone
:
pobj
.
phone
,
userName
:
pobj
.
userName
,
description
:
pobj
.
description
,
area
:
pobj
.
area
,
consultType
:
pobj
.
consultType
,
mobile
:
pobj
.
mobile
,
type
:
pobj
.
consultType
||
pobj
.
channel_type_code
,
service_product_id
:
productItem
.
data
.
service_product_id
,
productId
:
productItem
.
data
.
service_product_id
,
appName
:
pobj
.
appInfo
.
app_name
,
type_code
:
productItem
.
data
.
type_code
,
type_name
:
productItem
.
data
.
type_name
,
channel_type_code
:
productItem
.
data
.
channel_type_code
,
channel_type_name
:
productItem
.
data
.
channel_type_name
,
idempotentId
:
pobj
.
intentionBizId
,
idempotentSourceName
:
pobj
.
appInfo
.
app_name
,
level
:
"A"
}
}
console
.
log
(
"submitNeed--------------------------submitNeedParams----"
,
JSON
.
stringify
(
pobj
));
let
reqUrl
=
settings
.
centerOrderUrl
()
+
"action/need/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
let
result
=
await
this
.
restPostUrl
(
submitNeedParams
,
reqUrl
);
if
(
result
.
status
==
0
)
{
this
.
utilsPushSve
.
business2Channel
(
pobj
,
"pushNeedICPBusinessNew"
);
}
...
...
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