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
fe5719ca
Commit
fe5719ca
authored
Dec 17, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
baidureg
parent
636e2320
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
0 deletions
+73
-0
center-order/app/base/api/impl/action/regCenterOrder.js
+72
-0
center-order/app/base/service/impl/qcutils/baseqcSve.js
+1
-0
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
+0
-0
No files found.
center-order/app/base/api/impl/action/regCenterOrder.js
0 → 100644
View file @
fe5719ca
//工商注册
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
class
BaiduReg
extends
APIBase
{
constructor
()
{
super
();
this
.
regCenterOrder
=
system
.
getObject
(
"service.qcutils.regCenterOrder"
);
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
if
(
pobj
.
actionType
==
'getPolicyNeedList'
||
pobj
.
actionType
==
'submitPolicyNeedNotes'
)
{
if
(
!
pobj
.
userInfo
)
{
return
system
.
getResult
(
system
.
noLogin
,
"user no login!"
);
}
if
(
!
pobj
.
appInfo
)
{
return
system
.
getResult
(
system
.
noLogin
,
"app is null!"
);
}
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
console
.
log
(
"pobj"
,
pobj
)
var
opResult
=
null
;
switch
(
action_type
)
{
case
"receiveSolutionPayInfoNew"
:
//接收reg方案状态及支付信息(方案支付后创建订单时调用)
opResult
=
await
this
.
regCenterOrder
.
receiveSolutionPayInfoNew
(
pobj
);
break
;
case
"getItemByChannelSolutionNo"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
regCenterOrder
.
getItemByChannelSolutionNo
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getRegOrderStatus"
:
//接收订单状态推送 百度reg 2.3
opResult
=
await
this
.
regCenterOrder
.
getRegOrderStatus
(
pobj
);
break
;
case
"addRegSalesmanInfo"
:
//添加业务员信息,用于直接下单的reg订单
opResult
=
await
this
.
regCenterOrder
.
addRegSalesmanInfo
(
pobj
);
break
;
case
"submitRegNeed"
:
//提交需求
opResult
=
await
this
.
regCenterOrder
.
submitRegNeed
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"submitBdRegSolution"
:
//方案提交
opResult
=
await
this
.
regCenterOrder
.
submitBdRegSolution
(
pobj
);
break
;
case
"writeRegCommunicationLog"
:
//新增沟通记录
opResult
=
await
this
.
regCenterOrder
.
writeRegCommunicationLog
(
pobj
);
break
;
case
"queryExpertRegCommunicationLogs"
:
//获取沟通记录
opResult
=
await
this
.
regCenterOrder
.
queryExpertRegCommunicationLogs
(
pobj
);
break
;
case
"updateOrdertatus"
:
//提交交付信息/修改订单状态
opResult
=
await
this
.
regCenterOrder
.
updateOrdertatus
(
pobj
);
break
;
case
"closeBdRegNeed"
:
//需求关闭
opResult
=
await
this
.
regCenterOrder
.
closeBdRegNeed
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
BaiduReg
;
\ No newline at end of file
center-order/app/base/service/impl/qcutils/baseqcSve.js
View file @
fe5719ca
...
...
@@ -123,6 +123,7 @@ class BaseQcService {
console
.
log
(
'guanbi ns +++'
,
ns
)
return
system
.
getResultSuccess
(
ns
);
}
return
system
.
getResultSuccess
();
})
}
...
...
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
0 → 100644
View file @
fe5719ca
This diff is collapsed.
Click to expand it.
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