Commit f6ecd829 by 宋毅

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents aff2e55b bb7b011e
......@@ -244,13 +244,6 @@ module.exports = function (app) {
next();
return;
}
if (req.originalUrl.indexOf("/action/tmQuery") >= 0 || req.originalUrl.indexOf("/action/tmTools") >= 0) {
req.body.actionProcess = "test-code";
req.body.actionBody.appHosts = req.host;
req.body.appInfo = { id: 1 }
next();
return;
}
if (req.body.actionType == "receiveCallBackNotify") {
req.body.actionBody.app_hosts = req.host;
next();
......
......@@ -4,7 +4,7 @@
## **<a name="getToken"> 获取token</a>**
[返回到目录](#menu) <a name="menu" href="/doc">返回主目录</a>
##### URL
##### (1)URL 前端获取token示例
[/web/auth/accessAuth/getAppTokenByHosts]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
......@@ -15,8 +15,8 @@
"actionBody":{}
}
```
##### 或
##### URL
##### (2)URL 后端请求获取token示例
[/api/auth/accessAuth/getAppTokenByAppKey]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
......@@ -24,8 +24,8 @@
{
"actionType":"getAppTokenByAppKey",//固定写法就行
"actionBody":{
"appkey": "2019090811", //Y string appkey
"secret": "f99d413b767f09b5dff0b3610366cc46"//Y string 密钥
"appkey": "2019090811", //Y string appkey,使用时问平台获取
"secret": "f99d413b767f09b5dff0b3610366cc46"//Y string 密钥,使用时问平台获取
}
}
```
......
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