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
63b7a8bd
Commit
63b7a8bd
authored
Jun 07, 2022
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口修改
parent
9974d222
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
center-channel/app/base/api/impl/icp/consultation.js
+1
-1
center-channel/app/base/api/impl/icp/order.js
+12
-6
center-channel/app/base/service/impl/common/gatewaypushlogSve.js
+3
-1
No files found.
center-channel/app/base/api/impl/icp/consultation.js
View file @
63b7a8bd
...
...
@@ -37,7 +37,7 @@ class Consultation extends APIBase {
pobj
.
mobile
=
pobj
.
phone
;
// pobj.action_type = "submitIcpNeed";
if
(
!
pobj
.
area
)
{
return
s
elf
.
getResultFail
(
"area参数错误"
);
return
s
ystem
.
getResultFailByErrMsg
(
"area参数错误"
);
}
let
param
=
{
requestId
:
req
.
requestId
||
""
,
...
...
center-channel/app/base/api/impl/icp/order.js
View file @
63b7a8bd
...
...
@@ -19,7 +19,7 @@ class Order extends APIBase {
if
(
!
pobj
.
orderNo
)
{
return
system
.
getResultFailByErrMsg
(
"orderNo不能为空"
);
}
pobj
.
isDirectBuy
=
pobj
.
isDirectBuy
||
0
;
//1是直购
,0是下单未付款,算订单未付款需求
pobj
.
isDirectBuy
=
pobj
.
isDirectBuy
||
0
;
//1是直购
并付款,0是下单未付款
pobj
.
status
=
1
;
if
(
pobj
.
isDirectBuy
==
1
&&
!
pobj
.
phone
)
{
return
system
.
getResultFailByErrMsg
(
"直接下单phone不能为空"
);
...
...
@@ -37,10 +37,16 @@ class Order extends APIBase {
pobj
.
area
=
settings
.
areaConfig
[
pobj
.
area
];
// pobj.action_type = "icpOrderStatus";
if
(
!
pobj
.
area
)
{
return
self
.
getResultFail
(
"area参数错误"
);
return
system
.
getResultFailByErrMsg
(
"area参数错误"
);
}
if
(
pobj
.
isDirectBuy
==
0
)
{
//下单未付款订单直接创建需求信息
pobj
.
type
=
pobj
.
consultType
;
pobj
.
mobile
=
pobj
.
phone
;
pobj
.
intentionBizId
=
pobj
.
orderNo
;
//⽤户咨询编号
pobj
.
description
=
"未付款的订单过去的需求,咨询编号为未付款订单号"
;
//⽤户需求信息
}
let
param
=
{
requestId
:
req
.
requestId
||
self
.
getUUID
()
,
requestId
:
req
.
requestId
||
""
,
// requestUrl: "/icp/order/notify",
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
// pushUrl: "/action/intentionapi/springBoard",//调用地址
...
...
@@ -48,8 +54,8 @@ class Order extends APIBase {
pushtimes
:
0
,
//推送次数
pushStatus
:
"wts"
,
//推送状态
version
:
1
,
interface_path
:
"service.receiveSve.icpOrder
Sve"
,
//接口路径
interface_method
:
"submitOrder
"
,
//接口方法
interface_path
:
pobj
.
isDirectBuy
==
1
?
"service.receiveSve.icpOrderSve"
:
"service.receiveSve.icpNeed
Sve"
,
//接口路径
interface_method
:
pobj
.
isDirectBuy
==
1
?
"submitOrder"
:
"submitNeed
"
,
//接口方法
}
await
this
.
gatewaypushlogSve
.
create
(
param
);
return
system
.
getResultSuccess
(
null
);
...
...
@@ -65,7 +71,7 @@ class Order extends APIBase {
pobj
.
channelOrderNo
=
pobj
.
orderNo
;
// pobj.action_type = "icpOrderClose";
let
param
=
{
requestId
:
req
.
requestId
||
self
.
getUUID
()
,
requestId
:
req
.
requestId
||
""
,
// requestUrl: "/icp/order/close",
requestjson
:
JSON
.
stringify
(
pobj
),
//请求地址
// pushUrl: "/action/intentionapi/springBoard",//调用地址
...
...
center-channel/app/base/service/impl/common/gatewaypushlogSve.js
View file @
63b7a8bd
...
...
@@ -25,7 +25,7 @@ class GatewaypushlogService extends ServiceBase {
try
{
var
icloginfo
=
icloginfos
[
i
];
if
(
icloginfo
.
version
==
1
)
{
self
.
newTaskHandle
(
icloginfo
);
await
self
.
newTaskHandle
(
icloginfo
);
continue
;
}
var
requestdata
=
null
;
...
...
@@ -82,6 +82,8 @@ class GatewaypushlogService extends ServiceBase {
console
.
log
(
"params.............................................."
,
JSON
.
stringify
(
params
))
let
doRes
=
await
invokeObj
[
item
.
interface_method
].
apply
(
invokeObj
,
params
);
console
.
log
(
"newTaskHandle.............................................."
,
JSON
.
stringify
(
doRes
))
item
.
pushStatus
=
"yts"
;
this
.
update
(
item
);
return
doRes
;
}
...
...
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