Commit 79a49207 by 宋毅

tj

parent 3aa83dec
...@@ -16,23 +16,17 @@ class AccessAuthAPI extends APIBase { ...@@ -16,23 +16,17 @@ class AccessAuthAPI extends APIBase {
} }
async taskAgainFqPushInfo(pobj, qobj, req) {//再次推送蜂擎业务数据 async taskAgainFqPushInfo(pobj, qobj, req) {//再次推送蜂擎业务数据
var rtn = await this.utilsPushSve.aliBusiness2Fq(pobj, pobj.opType); 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; return rtn;
} }
async taskAgainPushOneNewBusInfo(pobj, qobj, req) {//再次推送新rpc业务数据 async taskAgainPushOneNewBusInfo(pobj, qobj, req) {//再次推送新rpc业务数据
var rtn = await this.utilsPushSve.againPushBusInfo(pobj); 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; return rtn;
} }
async taskAgainPushOneOldBusInfo(pobj, qobj, req) {//再次推送老rpc业务数据 async taskAgainPushOneOldBusInfo(pobj, qobj, req) {//再次推送老rpc业务数据
var rtn = await this.aliclient.reqbyget(pobj) 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; return rtn;
} }
async taskAliTmUpdate(pobj, qobj, req) {//操作阿里商标更新 async taskAliTmUpdate(pobj, qobj, req) {//操作阿里商标更新
...@@ -64,13 +58,29 @@ class AccessAuthAPI extends APIBase { ...@@ -64,13 +58,29 @@ class AccessAuthAPI extends APIBase {
return system.getResultSuccess(); return system.getResultSuccess();
} }
// async taskAgainPushNewBusInfo(pobj, qobj, req) {//再次推送新rpc业务数据 async taskPushPublicService(pobj, qobj, req) {
// var rtn = await this.utilsPushSve.againPushBusInfo(pobj); // var result = await this.pushlogSve.getFailLogList();
// return rtn; // if (result.status != 0 || !result.data || result.data.length == 0) {
// } // return system.getResult(null, "push data is empty");
// async taskAgainPushOldBusInfo(pobj, qobj, req) {//再次推送老rpc业务数据 // }
// var rtn = await this.aliclient.reqbyget(pobj) // for (let index = 0; index < result.data.length; index++) {
// return rtn; // 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; module.exports = AccessAuthAPI;
\ No newline at end of file
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"
}
1.获取请求token 1.获取请求token
...@@ -20,31 +20,8 @@ HTTP请求方式 POST ...@@ -20,31 +20,8 @@ HTTP请求方式 POST
"requestId": "2016c54abe7249a2a1195d236b333f79" "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] 地址:[/#/needProxy?needNo=XXX&userId=jfklajflsjfs&nickName=松XXX&mobile=15010929368&orgName=汉唐集团&token=XXXXX]
请求方式:GET 请求方式:GET
参数说明: 参数说明:
...@@ -56,7 +33,7 @@ HTTP请求方式 POST ...@@ -56,7 +33,7 @@ HTTP请求方式 POST
orgName//公司名称 orgName//公司名称
token//token值 token//token值
4.推送公司表单材料 3.推送公司表单材料
地址:[/api/opreceive/ic/springBoard] 地址:[/api/opreceive/ic/springBoard]
请求方式:POST 请求方式:POST
请求头中需要有token(token值从接口1中获取) 请求头中需要有token(token值从接口1中获取)
...@@ -77,7 +54,7 @@ HTTP请求方式 POST ...@@ -77,7 +54,7 @@ HTTP请求方式 POST
"requestId": "2016c54abe7249a2a1195d236b333f79" "requestId": "2016c54abe7249a2a1195d236b333f79"
} }
5.推送公司状态 4.推送公司状态
地址:[/api/opreceive/ic/springBoard] 地址:[/api/opreceive/ic/springBoard]
请求方式:POST 请求方式:POST
请求头中需要有token(token值从接口1中获取) 请求头中需要有token(token值从接口1中获取)
...@@ -98,7 +75,7 @@ HTTP请求方式 POST ...@@ -98,7 +75,7 @@ HTTP请求方式 POST
"requestId": "2016c54abe7249a2a1195d236b333f79" "requestId": "2016c54abe7249a2a1195d236b333f79"
} }
6.关闭需求接口 5.关闭需求接口
地址:[/api/opreceive/need/springBoard] 地址:[/api/opreceive/need/springBoard]
请求方式:POST 请求方式:POST
请求头中需要有token(token值从接口1中获取) 请求头中需要有token(token值从接口1中获取)
...@@ -117,30 +94,23 @@ HTTP请求方式 POST ...@@ -117,30 +94,23 @@ HTTP请求方式 POST
} }
6.商标报告
2.渠道通过账户进行登录,有则返回用户信息,没有则创建用户---->供前端调用 地址:[/api/action/tmQuery/springBoard]
地址:[/web/auth/accessAuth/springBoard]
请求方式:POST 请求方式:POST
请求头中需要有token(token值从接口1中获取) 请求头中需要有token(token值从接口1中获取)
{ {
"actionType": "getNeedUserPinByChannelUserId", "actionType":"tmreport",
"actionBody": { "actionBody":
"needNo":"N2020021413152wiWI2e",// Y 需求号 {
"channelUserId":"15010929366",// Y 渠道用户ID "companyname":"", //公司名称
"channelUserName":"",// N 渠道用户名 "phonenum":"",  //电话 非必添
"mobile":"15010929366", // N 渠道用户手机号 "email":"",   //邮箱
"nickName":"", // N 用户昵称 }
"orgName":"" // N 公司名称 }
}
}
返回结果 返回结果
{ {
"status": 0,//0成功,否则失败 "status": 0,//0成功,否则失败
"msg": "success", "msg": "success",
"data": { "data": null,
"userpin":"c54abe7249a2a1195d236b333f79",
"channelTypeCode":"",//阿里公司注册编码:普通公司注册:esp.companyreg、云上公司注册:esp.companyreg_cloud
"typeCode":"gszc"//gszc公司注册,ysgszc云上公司注册
},
"requestId": "2016c54abe7249a2a1195d236b333f79" "requestId": "2016c54abe7249a2a1195d236b333f79"
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment