Skip to content
New issue

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

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

Already on GitHub? # to your account

下一步更新计划 #52

Open
luyanci opened this issue Mar 24, 2024 · 7 comments
Open

下一步更新计划 #52

luyanci opened this issue Mar 24, 2024 · 7 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@luyanci
Copy link
Collaborator

luyanci commented Mar 24, 2024

Recreate #23

目前已知bug #55 #63

现在正在重构中…(#45 )[重构完成,在milestone 或者wip_v2分支(这里加了ci)]

1. 修复全屏/无法退出问题

Q: 为什么程序现在不好关闭?
A: 我的 electron 里面包了一个 express, 这个express 用来托管网页 build 出来的 static 文件. electron 打开后是去访问这个 express. (端口号是随机可用). 由于ui上的操作都是对网页而言的,所以没加关闭的功能。

修改思路:

  1. express 写两个 api 一个用来关闭,另外一个用来切换fullscreen, electron 和 express 代码都在 main.js 里,应该比较好改。

  2. 网页端可用把主页上右上角的按钮写成调用 express 关闭的api, 左上角问号旁边有个fullscreen的按钮可用做切换fullscreen.

Misc.

这个思路应该可以做很多保存,读取相关的功能,比如导入照片等等。。。
(实际上已经修复完成了…)

2. 星级/保底/去重复

代码中存在一些原来作者写的抽卡算法(用来模拟原神的抽卡), 但是这个算法不太适用于点名。

我设计了一种新的思路,同时解决以下问题:

  1. 抽到重复的人
  2. 只有三星
  3. 保底机制

描述一下我的设计思路:

(如果有人愿意可以实现, 修改 /src/helper/gocha/member.js相关文件)

  1. 导入名单; 获得一个 string list, 使用者保证输入名单无重复。
  2. 实现 GenerateDrawPool() 生成卡池;
  3. 卡池内每个学生存一次, 随机选择一个人为5星, 随机几个人4星 (这里可以自定义).
  4. 对卡池做 RandomShuffle(洗牌算法)
  5. 抽卡的时候直接拿最后一个元素, 如果n抽就拿n个.
  6. 抽到5星重新生成卡池.

Misc.

同时可以做一个卡池的主页图片, 显示此次为5星的人物信息

(luyanci:这样做其实无异于重构了吧…)

@luyanci luyanci added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Mar 24, 2024
@Shiomastusaka
Copy link

以后会做win7适配吗?

@luyanci
Copy link
Collaborator Author

luyanci commented Mar 26, 2024

以后会做win7适配吗?

在 PR #33 #34 应该适配了

根据release提示下载Tauri版的程序
目前electron版的程序还是不支持(除非降electron的版本)

@Shiomastusaka
Copy link

好好,谢谢大佬

@Maizi-G
Copy link
Collaborator

Maizi-G commented Apr 5, 2024

大佬抽时间加一下那个dockerhub用户名和秘钥,微信发过的那个 @cyanial

@windy664
Copy link

windy664 commented Oct 2, 2024

大佬能不能更新个数据保留功能,每次打开名单都要重新上传一遍

@Sev73n
Copy link

Sev73n commented Nov 20, 2024

求个安卓版 出去玩的时候 大家可以用

@LainSh
Copy link

LainSh commented Nov 21, 2024

macos 15.1系统打不开了,大佬会更新下吗

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants