|
|
2 mesi fa | |
|---|---|---|
| .. | ||
| doc | 1 anno fa | |
| src | 2 mesi fa | |
| README.md | 1 anno fa | |
| pom.xml | 3 mesi fa | |
步骤:
先通过 /rest/controller/identity 接口获取一个匿名登录的 临时token,参数如下固定值即可:
{ "channelCode":"OffWeb" }
调登录接口 /rest/tplatform/login:参数格式如下:
{ "userName":"Tgengchenjie", "channelCode":"OffWeb", "password":"CI3NVut7IQUhVnsef1Cp8w==" }
并携带上 临时token 的请求头:tkcarrequesttoken: 临时token。
与第一步一样,再次调 /rest/controller/identity 接口申请 正式token,参数格式如下:
{ "channelCode":"OffWeb" }
还是需要携带上 临时token 的请求头:tkcarrequesttoken: 临时token。
之后的所有请求不再使用 临时token,而是开始使用且一直使用 正式token,所有的请求都要携带上 正式token 的请求头:tkcarrequesttoken: 正式token。