Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化渠道管理页面:余额监控功能 & 定时刷新 #11

Closed
JeazW opened this issue Apr 25, 2023 · 4 comments
Closed

优化渠道管理页面:余额监控功能 & 定时刷新 #11

JeazW opened this issue Apr 25, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@JeazW
Copy link

JeazW commented Apr 25, 2023

1.没有测试出渠道支持多key的功能,在一个渠道中多次添加不同key后数据库key字段信息只有一条最后添加的key(页面无展示只好去数据库查看);
2.渠道编辑页面能否设计成可以批量管理该渠道下对应的key。
image
在下方区域设计类似以下界面:
image
3.(大功能)余额监控,为避免调取key的时候该key额度已经为0,可以加入定时任务自动刷新额度。

@songquanpeng
Copy link
Owner

  1. 第一个不应该啊,你用的是什么数据库?
  2. 这里有点歧义,这里的渠道指的是不同的 key 就算不同的渠道,例如两个 API2D 的 key 视为两个渠道。
  3. 余额监控这个是个好主意,加入 TODO。

@songquanpeng songquanpeng added the enhancement New feature or request label Apr 25, 2023
@songquanpeng songquanpeng changed the title [功能建议]渠道编辑页 优化渠道编辑页面 Apr 25, 2023
@JeazW
Copy link
Author

JeazW commented Apr 25, 2023

用的sqlite,既然逻辑是每个key算作不同渠道,那我理解错了,这里没问题。作者辛苦

@songquanpeng songquanpeng changed the title 优化渠道编辑页面 优化渠道编辑页面:余额监控功能 & 定时刷新 Apr 25, 2023
@songquanpeng songquanpeng changed the title 优化渠道编辑页面:余额监控功能 & 定时刷新 优化渠道管理页面:余额监控功能 & 定时刷新 Apr 25, 2023
@Chenm4
Copy link

Chenm4 commented Apr 27, 2023

作为新手想用这个项目练手一下如何部署项目到linux服务器,但是我碰到了一点问题想来请教一下,就是我部署的时候运行./one-api --port 3000 --log-dir ./logs 显示 [root@VM-4-9-centos wwwroot]# ./one-api --port 3000 --log-dir ./logs
-bash: ./one-api: cannot execute binary file 然后我通过 [root@VM-4-9-centos wwwroot]# file ./one-api 发现它显示
./one-api: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows 也就是说生成的二进制文件是只能Windows执行,请问这是什么原因?感谢感谢!

@songquanpeng
Copy link
Owner

@Chenm4 去这里 #32 讨论哈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants