@Tully 在 CC Switch 配置用量查询,没有访问令牌时可以使用 Cookie替代 中发帖
[PixPin_2025-12-10_19-36-47]
({
request: {
url: "{{baseUrl}}/api/user/self",
method: "GET",
headers: {
"Content-Type": "application/json",
Cookie: "{{accessToken}}", // 实际上是 Cookie
"New-Api-User": "{{userId}}",
},
},
extractor: function (response) {
if (response.success && response.data) {
return {
planName: response.data.group || "默认套餐",...