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
c82b8619
Commit
c82b8619
authored
Feb 20, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
b171e0ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
center-channel/app/base/api/impl/opaction/icbcOrderNotify.js
+2
-4
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+14
-1
No files found.
center-channel/app/base/api/impl/opaction/icbcOrderNotify.js
View file @
c82b8619
...
@@ -24,7 +24,7 @@ class IcbcOrderNotify extends APIBase {
...
@@ -24,7 +24,7 @@ class IcbcOrderNotify extends APIBase {
}
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
var
opResult
=
null
;
this
.
logCtl
.
error
({
this
.
logCtl
.
info
({
appid
:
pobj
.
appInfo
.
uapp_id
,
appid
:
pobj
.
appInfo
.
uapp_id
,
appkey
:
pobj
.
appInfo
.
uapp_key
,
appkey
:
pobj
.
appInfo
.
uapp_key
,
requestId
:
req
.
requestId
,
requestId
:
req
.
requestId
,
...
@@ -36,9 +36,7 @@ class IcbcOrderNotify extends APIBase {
...
@@ -36,9 +36,7 @@ class IcbcOrderNotify extends APIBase {
});
});
switch
(
action_type
)
{
switch
(
action_type
)
{
case
"icOrderStatusNotify"
:
//工商状态通知
case
"icOrderStatusNotify"
:
//工商状态通知
opResult
=
system
.
getResultSuccess
();
opResult
=
await
this
.
utilsOrderSve
.
icOrderStatusNotify
(
pobj
,
pobj
.
actionBody
);
//TODO:操作通知
// opResult = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody);
break
;
break
;
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
c82b8619
...
@@ -77,16 +77,29 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -77,16 +77,29 @@ class UtilsOrderService extends AppServiceBase {
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
return
result
;
}
}
async
getOrderInfo
(
pobj
,
actionBody
)
{
async
getOrderInfo
(
pobj
,
actionBody
)
{
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
return
result
;
}
}
async
getOrderDeliveryInfo
(
pobj
,
actionBody
)
{
async
getOrderDeliveryInfo
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty"
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
return
result
;
}
}
async
icOrderStatusNotify
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty"
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"notifyaction/oporder/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
}
/**
/**
* 获取H5支付地址
* 获取H5支付地址
* @param {*} pobj
* @param {*} pobj
...
...
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