vvbbnn00 / WARP-Clash-API

该项目可以让你通过订阅的方式使用Cloudflare WARP+,自动获取流量。This project enables you to use Cloudflare WARP+ through subscription, automatically acquiring traffic.
GNU General Public License v3.0
8.52k stars 1.16k forks source link

更新license_key报错 #208

Closed a5412398 closed 5 months ago

a5412398 commented 6 months ago

image

curl -X POST http://192.168.0.3:21001/api/account/update_license?key=psj1122fg001 -H "Content-Type: appli cation/json" -d "{"license_key": "Kp5fb793-0KG4E83s-1ZY9B6r2"}"

命令没问题啊,为啥提示这个?

chptnt commented 5 months ago

请问你解决了吗,我更新自己的license_key 后报错:{"code":403,"message":"Unauthorized"}

chptnt commented 5 months ago

我已经解决了,你的命令应该错了,update_license?key=psj1122fg001,这一块你就保持默认给你的命令(你的命令中修改了?key=psj1122fg001),我之前的错误是因为我设置了secret_key,所以导致更新没有权限,因为命令中没有设置secret_key

a5412398 commented 5 months ago

换成这个命令,执行成功了 curl -v -k -X POST https://d.******.xyz:82/api/account/update_license?key=ps*****g001 -H "Content-Type: application/json" -d "{\"license_key\": \"Kp5fb7*****Y9B6r2\"}" 真不容易