diff --git "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\345\217\230\351\207\217.md" "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\345\217\230\351\207\217.md" index 0a0902e..5b9aeba 100644 --- "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\345\217\230\351\207\217.md" +++ "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\351\241\271\347\233\256\345\210\227\350\241\250-\345\217\230\351\207\217.md" @@ -425,3 +425,58 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/design/global_attr/' \ } ``` +### 获取所有渠道 + +**METHOD**: GET + +**path**: api/platform/design/api/channel/all + +**RequestHeaders:** 同创作平台请求header + +#### 请求param字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求body字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求示例 + +```js +curl 'http://tx-gz11.heyqiwu.cn/api/platform/design/api/channel/all' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURFd056SXhNak1zSW1WNGNDSTZNVGN3TVRBM09UTXlNeXdpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpVd2ZRLnpUQ0twMGo0U0lGX2RNRjdQd1hTbE9RNHNabDFWTnE2djFjWTFBZ0tMelE6czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -H 'Cookie: username=jixudong; nickname=jixudong; authority=1; icon=#; platform_token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDEwNzIxMjMsImV4cCI6MTcwMTA3OTMyMywiYXV0aG9yaXR5IjoxLCJpZCI6MzUwfQ.zTCKp0j4SIF_dMF7PwXSlOQ4sZl1VNq6v1cY1AgKLzQ' \ + -H 'Referer: http://tx-gz11.heyqiwu.cn/Editor/' \ + -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \ + -H 'botAccount: txgz12botss683671618' \ + -H 'groupId: 1703' \ + -H 'mul: true' \ + -H 'projectId: 3165' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": [ + { + "appChannelId": "DEFAULT", + "appChannelName": "默认" + } + ] +} +``` + +### \ No newline at end of file