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
05bf1567
Commit
05bf1567
authored
Jul 28, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aliyunicp
parent
a195e4ec
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
157 additions
and
3 deletions
+157
-3
center-channel/app/base/service/impl/common/centerorderSve.js
+15
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+6
-0
center-channel/app/base/system.js
+1
-1
center-channel/app/config/routes/api.js
+2
-1
center-channel/app/config/settings.js
+8
-1
center-channel/app/front/entry/public/apidoc/platform/icpOrder.md
+125
-0
No files found.
center-channel/app/base/service/impl/common/centerorderSve.js
View file @
05bf1567
...
...
@@ -5,6 +5,7 @@ const AppServiceBase = require("../../app.base");
class
CenterorderService
extends
AppServiceBase
{
constructor
()
{
super
();
this
.
qifubaoUrl
=
settings
.
qifubaoUrl
();
this
.
centerOrderUrl
=
settings
.
centerOrderUrl
();
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
this
.
aliclient
=
system
.
getObject
(
"util.aliyunClient"
);
...
...
@@ -199,6 +200,20 @@ class CenterorderService extends AppServiceBase {
return
system
.
getResultSuccess
();
}
/**
* 推送ICP交付信息至企业宝(交付系统)
*/
async
pushIcpOrderDelivery2Qfb
(
orderNo
,
needsolution
){
var
pushObj
=
{
orderNo
:
orderNo
,
needsolution
:
needsolution
};
var
url
=
this
.
qifubaoUrl
+
"xxx/xxxxx"
;
var
rtn
=
await
this
.
execClient
.
execPost
(
pushObj
,
url
);
var
data
=
JSON
.
parse
(
rtn
.
stdout
);
return
system
.
getResultSuccess
();
}
async
icppaysuccess
(
pobj
)
{
var
sobj
=
{
...
...
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
05bf1567
...
...
@@ -270,6 +270,12 @@ class UtilsNeedService extends AppServiceBase {
var
rtn
=
await
this
.
restPostUrl
(
pobj
,
url
);
return
rtn
;
}
/**
* 推送交付信息至企业宝(交付系统)
*/
async
pushOrderDelivery2Qfb
(
pobj
,
needsolution
){
}
async
opDownFileInfo
(
docUrl
,
result
)
{
//从oss下载到本地并上传到自己oss,之后删除本地文件
/*docUrl下载链接,全路径,如:https://XXXXXX.pdf?XXXXX */
...
...
center-channel/app/base/system.js
View file @
05bf1567
...
...
@@ -182,7 +182,7 @@ class System {
return
{
status
:
0
,
msg
:
okmsg
,
...
data
//
...data
};
}
...
...
center-channel/app/config/routes/api.js
View file @
05bf1567
...
...
@@ -236,7 +236,8 @@ module.exports = function (app) {
}
req
.
body
.
appInfo
=
result
.
data
;
req
.
body
.
actionProcess
=
result
.
data
.
app_code
;
var
lst
=
[
"tmConfirm"
,
"getNeedSolutionDetailByUser"
,
"getProgrammeInfoByChannelNeedNo"
,
var
lst
=
[
"serviceProviderSubmitMaterial"
,
"closeOrderDelivery"
,
"serviceProviderNotification"
,
"tmConfirm"
,
"getNeedSolutionDetailByUser"
,
"getProgrammeInfoByChannelNeedNo"
,
"submitIcpProgramme"
,
"submitIcpMaterial"
,
"acceptIcpPartnerNotification"
,
"abolishIcpProgramme"
,
"addOrder"
,
"getH5PayUrl"
,
"getOrderQrCode"
,
"queryOrderStatus"
,
"getOrderInfo"
,
"getOrderDeliveryInfo"
,
"getOrderDetails"
,
"getOrderDeliveryFlowInfo"
,
"getOrderDeliveryFlowList"
,
"getOrderLogInfo"
,
"updateContacts"
,
"updateTmOrder"
,
"delOrder"
,
...
...
center-channel/app/config/settings.js
View file @
05bf1567
var
path
=
require
(
'path'
);
var
AlipaySdk
=
require
(
'alipay-sdk'
).
default
;
var
WXPay
=
require
(
'wx-pay'
);
const
tenpay
=
require
(
'tenpay'
);
//
const tenpay = require('tenpay');
var
ENVINPUT
=
{
DB_HOST
:
process
.
env
.
DB_HOST
,
DB_PORT
:
process
.
env
.
DB_PORT
,
...
...
@@ -58,6 +58,13 @@ var settings = {
return
"http://gsb.qifu.gongsibao.com/tlpay/notify"
;
}
},
qifubaoUrl
:
function
()
{
//企服宝(交付系统)
if
(
this
.
env
==
"dev"
)
{
return
"http://xxxx:xxxx/"
;
}
else
{
return
""
;
}
},
paasUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://p.apps.com:4001/"
;
...
...
center-channel/app/front/entry/public/apidoc/platform/icpOrder.md
View file @
05bf1567
...
...
@@ -8,6 +8,9 @@
1.
[
获取方案详情
](
#getNeedSolutionDetailByUser
)
1.
[
获取需求详情
](
#getItemByNeedNo
)
1.
[
需求关闭
](
#needCloseIcp
)
1.
[
交付商提交材料信息
](
#serviceProviderSubmitMaterial
)
1.
[
交付商通知状态变更
](
#serviceProviderNotification
)
1.
[
交付商关闭交付单
](
#closeOrderDelivery
)
## **<a name="submitIcpProgramme"> icp方案提交</a>**
[
返回到目录
](
#menu
)
...
...
@@ -597,3 +600,125 @@ ApplicationStatus:
## **<a name="serviceProviderSubmitMaterial"> 交付商提交材料信息</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/qcapi/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:serviceProviderSubmitMaterial
```
javascript
{
"actionType"
:
"serviceProviderSubmitMaterial"
,
"actionBody"
:
{
"orderNo"
:
"NS202007281012kdOHlK"
,
//订单号 必填
"material"
:
{
//材料信息
"Domain"
:
"备案域名"
,
//必填
"CorporateName"
:
"法人名称"
,
//必填
"IncludeForeignInvestment"
:
true
,
//必填
"PartnerBusinessLicense"
:
"营业执照"
,
//必填
"PartnerIdCardList"
:
[
"相关人员身份证"
],
//必填
"PartnerDomainCertificate"
:
"域名证书"
,
//必填
"PartnerPreviewOtherList"
:
[
"合作方递交其他供预览的件,只能传递ZIP包"
],
"PartnerPlan"
:
"收费方案计划书"
,
"PartnerForeignInvestment"
:
"股东追溯不涉及外资承诺书"
,
"PartnerLaw"
:
"依法经营电信业务承诺书"
,
"PartnerStampOtherList"
:
[
"需要盖章,只能传递1个zip包"
],
"PartnerSignOtherList"
:
[
"需要签字,只能传递1个zip包"
],
"PartnerSignAndStampOtherList"
:
[
"需要盖章,只能传递1个zip包"
]
}
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
// 0为成功,否则失败
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"a277fb799d9f4dda9053fb8830f9d252"
}
```
## **<a name="serviceProviderNotification"> 交付商通知状态变更</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/qcapi/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:serviceProviderNotification
```
javascript
{
"actionType"
:
"serviceProviderNotification"
,
"actionBody"
:
{
"orderNo"
:
"NS202007281012kdOHlK"
,
//订单号 必填
"status"
:
507
,
//交付状态 必填
"officialFileURL"
:
""
//官文url 非必填
}
}
status
:
507
,
"完成账户注册"
508
,
"服务商完成提交资料到⼯信部"
509
,
"⼯商部已受理"
,可以传递发⽂
510
,
"⼯商部不予受理"
,可以传递发⽂
511
,
"⼯商部通过"
,可以传递发⽂
512
,
"⼯商部未通过"
,可以传递发⽂
```
#### 返回结果
```
javascript
{
"status"
:
0
,
// 0为成功,否则失败
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"a277fb799d9f4dda9053fb8830f9d252"
}
```
## **<a name="closeOrderDelivery"> 交付商关闭交付单</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/qcapi/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:closeOrderDelivery
```
javascript
{
"actionType"
:
"closeOrderDelivery"
,
"actionBody"
:
{
"orderNo"
:
"NS202007281012kdOHlK"
,
//订单号 必填
"note"
:
"交付商关闭交付单"
//关闭原因 必填
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"40769e74e83f4505a78b24d84fed870b"
}
```
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