优化Token验证接口
This commit is contained in:
@@ -272,8 +272,8 @@ curl -G 'http://localhost:1818/api/v1/temLogin' --data-urlencode 'username=demo_
|
||||
* 仅接受商城临时登录 token(类型 **`muser`**),校验 `token` 表后写入 **`mall_session`**。
|
||||
* 返回的 `data.user_id` 为 **`playx_user_id`**(与资产表一致)。
|
||||
* **`verify_token_local_only = false`**(生产对接 playX)
|
||||
* 需配置 **`playX.api.base_url`**,由商城向 playX 发起 `POST` 校验(请求/响应约定见 **`docs/playX-接口待完善清单.md`** 第一部分 §1)。
|
||||
* 若未配置 `base_url`,返回 `playX API not configured`。
|
||||
* 需配置 **`PLAYX_TOKEN_VERIFY_URL`**(完整 `https` 回调或相对路径)及 **`PLAYX_ANGPOW_IMPORT_AUTH_KEY`** 等(见 `docs/PlayX-对接文档(积分商城).md` §5.2)。
|
||||
* 相对路径时尚需 **`PLAYX_ANGPOW_IMPORT_BASE_URL`**;未配置则返回未配置类错误。
|
||||
|
||||
#### 请求参数
|
||||
|
||||
@@ -281,6 +281,8 @@ curl -G 'http://localhost:1818/api/v1/temLogin' --data-urlencode 'username=demo_
|
||||
|
||||
* `token`(Body 优先;`session` 兼容字段;Query 也可传 `token`)
|
||||
|
||||
可选 **`lang`**:`zh` / `ZH` / `zh-cn` 中文 **`msg`**(默认),`en` / `EN` 英文;可通过请求头、Query 或与 Body 同传的字段指定。
|
||||
|
||||
#### 返回(成功 data)
|
||||
|
||||
| 字段 | 类型 | 说明 |
|
||||
|
||||
Reference in New Issue
Block a user