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
6a20e8a3
Commit
6a20e8a3
authored
Dec 20, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
0f46314d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
+21
-6
center-channel/app/base/api/impl/action/regapi.js
+7
-3
center-channel/app/base/service/impl/common/regCenterOrderSve.js
+0
-0
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+10
-0
center-channel/app/base/utils/baiduRegClient.js
+4
-3
No files found.
center-channel/app/base/api/impl/action/regapi.js
View file @
6a20e8a3
...
@@ -24,6 +24,7 @@ class RegAPI extends APIBase {
...
@@ -24,6 +24,7 @@ class RegAPI extends APIBase {
var
opResult
=
null
;
var
opResult
=
null
;
switch
(
action_type
)
{
switch
(
action_type
)
{
//-----------接入百度reg------start----laolan--2020.12.17----------------------------
//-----------接入百度reg------start----laolan--2020.12.17----------------------------
//---------2.
case
"submitRegNeed"
:
//提交需求
case
"submitRegNeed"
:
//提交需求
opResult
=
await
this
.
regCenterOrderSve
.
submitRegNeed
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
regCenterOrderSve
.
submitRegNeed
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
...
@@ -46,7 +47,7 @@ class RegAPI extends APIBase {
...
@@ -46,7 +47,7 @@ class RegAPI extends APIBase {
case
"getSolutionByChannelOrderNo"
:
//根据渠道订单获取方案信息
case
"getSolutionByChannelOrderNo"
:
//根据渠道订单获取方案信息
opResult
=
await
this
.
regCenterOrderSve
.
getSolutionByChannelOrderNo
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
regCenterOrderSve
.
getSolutionByChannelOrderNo
(
pobj
,
pobj
.
actionBody
);
break
;
break
;
//------------3.
case
"submitRegSolution"
:
//方案提交
case
"submitRegSolution"
:
//方案提交
opResult
=
await
this
.
regCenterOrderSve
.
submitRegSolution
(
pobj
);
opResult
=
await
this
.
regCenterOrderSve
.
submitRegSolution
(
pobj
);
break
;
break
;
...
@@ -59,8 +60,11 @@ class RegAPI extends APIBase {
...
@@ -59,8 +60,11 @@ class RegAPI extends APIBase {
case
"updateOrdertatus"
:
//提交交付信息/修改订单状态
case
"updateOrdertatus"
:
//提交交付信息/修改订单状态
opResult
=
await
this
.
regCenterOrderSve
.
updateOrdertatus
(
pobj
);
opResult
=
await
this
.
regCenterOrderSve
.
updateOrdertatus
(
pobj
);
break
;
break
;
case
"closeBdRegNeed"
:
//需求关闭
case
"regNeedClose"
:
//需求关闭
opResult
=
await
this
.
regCenterOrderSve
.
closeBdRegNeed
(
pobj
);
opResult
=
await
this
.
regCenterOrderSve
.
regNeedClose
(
pobj
);
break
;
case
"getRegInfoByChannelNeedNo"
:
//获取需求方案列表
opResult
=
await
this
.
regCenterOrderSve
.
reqCenterOrderApi
(
pobj
,
"action/regapi/springBoard"
);
break
;
break
;
// case "closeRegSolution"://服务商方案关闭
// case "closeRegSolution"://服务商方案关闭
// opResult = await this.regCenterOrderSve.closeRegSolution(pobj);
// opResult = await this.regCenterOrderSve.closeRegSolution(pobj);
...
...
center-channel/app/base/service/impl/common/regCenterOrderSve.js
View file @
6a20e8a3
This diff is collapsed.
Click to expand it.
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
6a20e8a3
...
@@ -117,6 +117,16 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -117,6 +117,16 @@ class UtilsOrderService extends AppServiceBase {
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
result
;
return
result
;
}
}
//reg关闭订单2020-12-20
async
delOrders
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
orderNo
)
{
return
system
.
getResult
(
null
,
"actionBody.orderNo can not be empty,100025"
);
}
var
reqUrl
=
this
.
centerOrderUrl
+
"action/order/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
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
);
...
...
center-channel/app/base/utils/baiduReg
c
lient.js
→
center-channel/app/base/utils/baiduReg
C
lient.js
View file @
6a20e8a3
...
@@ -2,7 +2,7 @@ const crypto = require('crypto');
...
@@ -2,7 +2,7 @@ const crypto = require('crypto');
const
sha256
=
require
(
'sha256'
);
const
sha256
=
require
(
'sha256'
);
const
system
=
require
(
"../system"
);
const
system
=
require
(
"../system"
);
var
settings
=
require
(
"../../config/settings"
);
var
settings
=
require
(
"../../config/settings"
);
class
baiduClient
{
class
baidu
Reg
Client
{
constructor
()
{
constructor
()
{
this
.
pushlogSve
=
system
.
getObject
(
"service.common.pushlogSve"
);
this
.
pushlogSve
=
system
.
getObject
(
"service.common.pushlogSve"
);
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
...
@@ -100,6 +100,6 @@ class baiduClient {
...
@@ -100,6 +100,6 @@ class baiduClient {
}
}
}
}
}
}
module
.
exports
=
baiduClient
;
module
.
exports
=
baidu
Reg
Client
;
// var task = new baiduClient();
// var task = new baidu
Reg
Client();
// console.log(task.baiduRegClientParams,"11111111111111111");
// console.log(task.baiduRegClientParams,"11111111111111111");
\ 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