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
53ed4acf
Commit
53ed4acf
authored
Oct 14, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
cd89e383
54072566
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
8 deletions
+91
-8
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
+18
-5
center-channel/app/front/entry/public/apidoc/platform/tmOrder.md
+73
-3
No files found.
center-channel/app/base/service/impl/common/qcCenterOrderSve.js
View file @
53ed4acf
...
@@ -2,6 +2,17 @@ const system = require("../../../system");
...
@@ -2,6 +2,17 @@ const system = require("../../../system");
const
crypto
=
require
(
'crypto'
);
const
crypto
=
require
(
'crypto'
);
var
settings
=
require
(
"../../../../config/settings"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
//(文网文状态2020-9-26)
const
wangwenStatusDisct
=
{
601
:
"PARTNER_SUBMIT_MATERIAL"
,
602
:
"CERT_ACCOUNT_REGISTERED"
,
603
:
"CERT_MATERIAL_SUBMITTED"
,
604
:
"CERT_GXB_ACCEPT"
,
605
:
"CERT_GXB_REFUSE"
,
606
:
"CERT_GXB_SUCCESS"
,
607
:
"CERT_GXB_FAIL"
};
/**
/**
* 资质信息提报相关接口(ICP\EDI)
* 资质信息提报相关接口(ICP\EDI)
*/
*/
...
@@ -16,6 +27,7 @@ class QcCenterOrderService extends AppServiceBase {
...
@@ -16,6 +27,7 @@ class QcCenterOrderService extends AppServiceBase {
this
.
utilsPushSve
=
system
.
getObject
(
"service.utilsSve.utilsPushSve"
);
this
.
utilsPushSve
=
system
.
getObject
(
"service.utilsSve.utilsPushSve"
);
this
.
utilsTmAliyunSve
=
system
.
getObject
(
"service.utilsSve.utilsTmAliyunSve"
);
//测试用
this
.
utilsTmAliyunSve
=
system
.
getObject
(
"service.utilsSve.utilsTmAliyunSve"
);
//测试用
this
.
opPushQueueUrl
=
settings
.
opPushQueueUrl
();
this
.
opPushQueueUrl
=
settings
.
opPushQueueUrl
();
};
};
//调用center-order
//调用center-order
async
reqCenterOrderApi
(
pobj
,
reqUrl
)
{
async
reqCenterOrderApi
(
pobj
,
reqUrl
)
{
...
@@ -225,13 +237,15 @@ class QcCenterOrderService extends AppServiceBase {
...
@@ -225,13 +237,15 @@ class QcCenterOrderService extends AppServiceBase {
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
//推送数据至阿里
//推送数据至阿里
var
resStatus
=
res
.
data
.
ApplicationStatus
;
var
pushObj
=
{
var
pushObj
=
{
BizId
:
res
.
data
.
solution
No
,
BizId
:
pobj
.
actionBody
.
channelNeed
No
,
BizType
:
res
.
data
.
channelTpye
,
BizType
:
pobj
.
actionBody
.
channelTpye
,
OperateType
:
res
.
data
.
ApplicationStatus
OperateType
:
wangwenStatusDisct
[
resStatus
]
};
};
//推送状态变更
//推送状态变更
this
.
aliclient
.
reqbyget
({
action
:
"OperateProduceForPartner"
,
reqbody
:
pushObj
,
apiVersion
:
"2020-03-06"
});
var
r
=
await
this
.
aliclient
.
reqbyget
({
action
:
"OperateProduceForPartner"
,
reqbody
:
pushObj
,
apiVersion
:
"2020-03-06"
});
console
.
log
(
'ttttssss'
,
r
)
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
return
res
;
return
res
;
...
@@ -242,7 +256,6 @@ class QcCenterOrderService extends AppServiceBase {
...
@@ -242,7 +256,6 @@ class QcCenterOrderService extends AppServiceBase {
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
var
res
=
await
this
.
reqCenterOrderApi
(
pobj
,
"action/qcapi/springBoard"
);
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
if
(
res
&&
res
.
status
==
0
&&
res
.
data
)
{
console
.
log
(
'datadatadata'
,
res
.
data
)
//推送数据至阿里
//推送数据至阿里
var
pushObj
=
{
var
pushObj
=
{
intentionBizId
:
res
.
data
.
needinfo
.
channelNeedNo
,
intentionBizId
:
res
.
data
.
needinfo
.
channelNeedNo
,
...
...
center-channel/app/front/entry/public/apidoc/platform/tmOrder.md
View file @
53ed4acf
...
@@ -5112,6 +5112,7 @@
...
@@ -5112,6 +5112,7 @@
"actionBody"
:{
"actionBody"
:{
"channel_user_id"
:
"19219084323984"
,
"channel_user_id"
:
"19219084323984"
,
"type"
:
"contact"
,
"type"
:
"contact"
,
"contact_name"
:
""
}
}
}
}
...
@@ -5121,9 +5122,78 @@
...
@@ -5121,9 +5122,78 @@
```
javascript
```
javascript
{
{
"status"
:
0
,
"status"
:
0
,
"msg"
:
"success"
,
"msg"
:
"操作成功"
,
"data"
:
null
,
"data"
:
[
"requestId"
:
"2a3eada5bd6a4e30807bbb2af8c0b4a8"
{
"id"
:
18
,
"channel_user_id"
:
"5e38f8ef56badb0009165fd1"
,
"contact_name"
:
"张三"
,
"contacts_content"
:
{
"fax"
:
""
,
"tel"
:
"010-11111"
,
"email"
:
"saa@gongsibao.com"
,
"mobile"
:
"15010929368"
,
"contacts"
:
"张三"
},
"type"
:
"applicant"
},
{
"id"
:
19
,
"channel_user_id"
:
"5e38f8ef56badb0009165fd1"
,
"contact_name"
:
"张三ggg"
,
"contacts_content"
:
{
"fax"
:
""
,
"tel"
:
"010-11111"
,
"email"
:
"saa@gongsibao.com"
,
"mobile"
:
"15010929368"
,
"contacts"
:
"张三ggg"
},
"type"
:
"applicant"
},
{
"id"
:
20
,
"channel_user_id"
:
"5e38f8ef56badb0009165fd1"
,
"contact_name"
:
"张三ggg4"
,
"contacts_content"
:
{
"fax"
:
""
,
"tel"
:
"010-11111"
,
"email"
:
"saa@gongsibao.com"
,
"mobile"
:
"15010929368"
,
"contacts"
:
"张三ggg4"
},
"type"
:
"applicant"
},
{
"id"
:
40
,
"channel_user_id"
:
"5e38f8ef56badb0009165fd1"
,
"contact_name"
:
"李啥啊"
,
"contacts_content"
:
{
"code"
:
"91310110398635929J"
,
"name"
:
"李啥啊"
,
"zipCode"
:
"100000"
,
"applyAddr"
:
"上海市杨浦区国定路346号三楼0624室003"
,
"customerType"
:
"person"
,
"identityCardNo"
:
"140311111111111111"
},
"type"
:
"applicant"
},
{
"id"
:
50
,
"channel_user_id"
:
"5e38f8ef56badb0009165fd1"
,
"contact_name"
:
"起个名字吧"
,
"contacts_content"
:
{
"code"
:
"91310110398635929J"
,
"name"
:
"起个名字吧"
,
"zipCode"
:
"100000"
,
"applyAddr"
:
"上海市杨浦区国定路346号三楼0624室003"
,
"customerType"
:
"person"
,
"identityCardNo"
:
"13013399999999999"
},
"type"
:
"applicant"
}
],
"bizmsg"
:
"empty"
,
"requestId"
:
"9770a5c5a6da4305b8fc83e296716cf5"
}
}
```
```
...
...
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