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
79a49207
Commit
79a49207
authored
May 13, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
3aa83dec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
120 additions
and
64 deletions
+120
-64
center-channel/app/base/api/impl/auth/taskapi.js
+28
-17
center-channel/内部后端文档
+74
-0
center-channel/峰擎文档
+18
-47
No files found.
center-channel/app/base/api/impl/auth/taskapi.js
View file @
79a49207
...
...
@@ -16,23 +16,17 @@ class AccessAuthAPI extends APIBase {
}
async
taskAgainFqPushInfo
(
pobj
,
qobj
,
req
)
{
//再次推送蜂擎业务数据
var
rtn
=
await
this
.
utilsPushSve
.
aliBusiness2Fq
(
pobj
,
pobj
.
opType
);
if
(
rtn
.
status
==
0
)
{
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
}
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
return
rtn
;
}
async
taskAgainPushOneNewBusInfo
(
pobj
,
qobj
,
req
)
{
//再次推送新rpc业务数据
var
rtn
=
await
this
.
utilsPushSve
.
againPushBusInfo
(
pobj
);
if
(
rtn
.
status
==
0
)
{
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
}
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
return
rtn
;
}
async
taskAgainPushOneOldBusInfo
(
pobj
,
qobj
,
req
)
{
//再次推送老rpc业务数据
var
rtn
=
await
this
.
aliclient
.
reqbyget
(
pobj
)
if
(
rtn
.
status
==
0
)
{
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
}
this
.
pushlogSve
.
delDbPushfaillogById
(
Number
(
pobj
.
id
||
0
));
return
rtn
;
}
async
taskAliTmUpdate
(
pobj
,
qobj
,
req
)
{
//操作阿里商标更新
...
...
@@ -64,13 +58,29 @@ class AccessAuthAPI extends APIBase {
return
system
.
getResultSuccess
();
}
// async taskAgainPushNewBusInfo(pobj, qobj, req) {//再次推送新rpc业务数据
// var rtn = await this.utilsPushSve.againPushBusInfo(pobj);
// return rtn;
// }
// async taskAgainPushOldBusInfo(pobj, qobj, req) {//再次推送老rpc业务数据
// var rtn = await this.aliclient.reqbyget(pobj)
// return rtn;
// }
async
taskPushPublicService
(
pobj
,
qobj
,
req
)
{
// var result = await this.pushlogSve.getFailLogList();
// if (result.status != 0 || !result.data || result.data.length == 0) {
// return system.getResult(null, "push data is empty");
// }
// for (let index = 0; index < result.data.length; index++) {
// const element = result.data[index];
// if (element) {
// var contentData = JSON.parse(element.content);
// contentData.id = element.id;
// contentData.pushNumber = element.pushNumber + 1;
// if (element.failType == 1) {
// this.taskAgainPushOneOldBusInfo(contentData);
// }
// else if (element.failType == 2) {
// this.taskAgainPushOneNewBusInfo(contentData);
// } else if (element.failType == 4) {
// this.taskAgainFqPushInfo(contentData);
// }//FQ
// }
// }
return
system
.
getResultSuccess
();
}
}
module
.
exports
=
AccessAuthAPI
;
\ No newline at end of file
center-channel/内部后端文档
0 → 100644
View file @
79a49207
1.获取请求token
1.获取请求token
[/api/opreceive/accessAuth/getAppTokenByAppKey]
请求方式:POST
参数格式 JSON
HTTP请求方式 POST
{
"actionType":"getAppTokenByAppKey",//固定写法就行
"actionBody":{
"appkey": "2019090811", //Y string appkey
"secret": "f99d413b767f09b5dff0b3610366cc46"//Y string 密钥
}
}
返回结果
{
"status": 0,
"msg": "success",
"data": {
"token": "40d64e586551405c9bcafab87266bc04" //token用于其他接口请求时,放在请求头中
},
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
2.渠道通过账户进行登录,有则返回用户信息,没有则创建用户---->供前端调用
地址:[/web/auth/accessAuth/springBoard]
请求方式:POST
请求头中需要有token(token值从接口1中获取)
{
"actionType": "getNeedUserPinByChannelUserId",
"actionBody": {
"needNo":"N2020021413152wiWI2e",// Y 需求号
"channelUserId":"15010929366",// Y 渠道用户ID
"channelUserName":"",// N 渠道用户名
"mobile":"15010929366", // N 渠道用户手机号
"nickName":"", // N 用户昵称
"orgName":"" // N 公司名称
}
}
返回结果
{
"status": 0,//0成功,否则失败
"msg": "success",
"data": {
"userpin":"c54abe7249a2a1195d236b333f79",
"channelTypeCode":"",//阿里公司注册编码:普通公司注册:esp.companyreg、云上公司注册:esp.companyreg_cloud
"typeCode":"gszc"//gszc公司注册,ysgszc云上公司注册
},
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
3.渠道通过账户进行登录,有则返回用户信息,没有则创建用户------>供后端调用
地址:[/api/opreceive/accessAuth/springBoard]
请求方式:POST
请求头中需要有token(token值从接口1中获取)
{
"actionType": "getLoginByUserName",
"actionBody": {
"channelUserId":"15010929366",// Y 渠道用户ID
"channelUserName":"",// N 渠道用户名
"mobile":"15010929366", // N 渠道用户手机号
"nickName":"", // N 用户昵称
"orgName":"" // N 公司名称
}
}
返回结果
{
"status": 0,//0成功,否则失败
"msg": "success",
"data": {
"userpin":"c54abe7249a2a1195d236b333f79"//用户登录后的userpin
},
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
center-channel/峰擎文档
View file @
79a49207
1.获取请
求token
1.获取请
求token
...
...
@@ -20,31 +20,8 @@ HTTP请求方式 POST
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
3.渠道通过账户进行登录,有则返回用户信息,没有则创建用户------>供后端调用
地址:[/api/opreceive/accessAuth/springBoard]
请求方式:POST
请求头中需要有token(token值从接口1中获取)
{
"actionType": "getLoginByUserName",
"actionBody": {
"channelUserId":"15010929366",// Y 渠道用户ID
"channelUserName":"",// N 渠道用户名
"mobile":"15010929366", // N 渠道用户手机号
"nickName":"", // N 用户昵称
"orgName":"" // N 公司名称
}
}
返回结果
{
"status": 0,//0成功,否则失败
"msg": "success",
"data": {
"userpin":"c54abe7249a2a1195d236b333f79"//用户登录后的userpin
},
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
3
.查看需求方案列表信息
2
.查看需求方案列表信息
地址:[/#/needProxy?needNo=XXX&userId=jfklajflsjfs&nickName=松XXX&mobile=15010929368&orgName=汉唐集团&token=XXXXX]
请求方式:GET
参数说明:
...
...
@@ -56,7 +33,7 @@ HTTP请求方式 POST
orgName//公司名称
token//token值
4
.推送公司表单材料
3
.推送公司表单材料
地址:[/api/opreceive/ic/springBoard]
请求方式:POST
请求头中需要有token(token值从接口1中获取)
...
...
@@ -77,7 +54,7 @@ HTTP请求方式 POST
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
5
.推送公司状态
4
.推送公司状态
地址:[/api/opreceive/ic/springBoard]
请求方式:POST
请求头中需要有token(token值从接口1中获取)
...
...
@@ -98,7 +75,7 @@ HTTP请求方式 POST
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
6
.关闭需求接口
5
.关闭需求接口
地址:[/api/opreceive/need/springBoard]
请求方式:POST
请求头中需要有token(token值从接口1中获取)
...
...
@@ -117,30 +94,23 @@ HTTP请求方式 POST
}
2.渠道通过账户进行登录,有则返回用户信息,没有则创建用户---->供前端调用
地址:[/web/auth/accessAuth/springBoard]
6.商标报告
地址:[/api/action/tmQuery/springBoard]
请求方式:POST
请求头中需要有token(token值从接口1中获取)
请求头中需要有token(token值从接口1中获取)
{
"actionType": "getNeedUserPinByChannelUserId",
"actionBody": {
"needNo":"N2020021413152wiWI2e",// Y 需求号
"channelUserId":"15010929366",// Y 渠道用户ID
"channelUserName":"",// N 渠道用户名
"mobile":"15010929366", // N 渠道用户手机号
"nickName":"", // N 用户昵称
"orgName":"" // N 公司名称
}
}
"actionType":"tmreport",
"actionBody":
{
"companyname":"", //公司名称
"phonenum":"", //电话 非必添
"email":"", //邮箱
}
}
返回结果
{
"status": 0,//0成功,否则失败
"msg": "success",
"data": {
"userpin":"c54abe7249a2a1195d236b333f79",
"channelTypeCode":"",//阿里公司注册编码:普通公司注册:esp.companyreg、云上公司注册:esp.companyreg_cloud
"typeCode":"gszc"//gszc公司注册,ysgszc云上公司注册
},
"data": null,
"requestId": "2016c54abe7249a2a1195d236b333f79"
}
\ 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