Giter Club home page Giter Club logo

douyu-gift's Introduction

新版本说明

请使用新软件: https://github.com/Curtion/douyu-keep

新软件新增了一些功能和执行模式. 详情请看说明页面.

当前旧软件仍然可以使用,但是不会修复已知bug, 也不会新增功能.

旧软件说明

功能: 设置比例分配荧光棒,开机自动启动,任务完成后自动关闭软件。

点击这里进行下载

说明

使用 Vue + ElementUI + TypeScript 驱动,仅用于学习用途。这是第二版,第一版使用了 jQuery + Electron; 第二版从代码上更清晰,但是功能不变,仍然只是自动赠送荧光棒。

当前 releases 只构建了 Windows X86_64 版本,如果需要 Linux 或者 Mac 版本请在vue.config.js配置,相关配置文档

克隆

https://github.com/Curtion/douyu-gift.git

安装

yarn install

开发

yarn electron:serve

构建

yarn electron:build

感谢

icon

douyu-gift's People

Contributors

curtion avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

douyu-gift's Issues

大佬能不能添加个后台运行

不知道现在能不能后台运行,一直是在任务栏中开着不太方便,因为电脑是一直不关的。想的是像类似于微信qq那种放到托盘区不管他的那种,不知道可不可以做。这样就可以一直挂在后台不管

有个问题

为什么我挂在电脑上,设置的定时自动运行,每天到点了不会自动运行呢?运行日志里也没用

关于自动荧光棒

我想请问一下 我个人电脑是不关机的 请问有办法让他每天自动开启 然后 自动给荧光棒吗?
还是说我只要不勾选"任务完成后自动关闭"
就能保持让他后台运行并且自动执行?
image

有两个牌子,一个能送,另一个错误124

[2021-12-20 22:14:57.433] [info] 开始赠送
[2021-12-20 22:14:57.476] [info] sid获取成功:433070858
[2021-12-20 22:14:57.476] [info] dy获取成功:0cb3d5acf72d133d7418c58d00061601
[2021-12-20 22:14:57.478] [info] 获取"142488"房间获取did值开始
[2021-12-20 22:14:57.573] [info] 获取"142488"房间获取did值结束,成功:6058512
[2021-12-20 22:15:00.575] [info] 赠送"142488"房间开始,数量:2
[2021-12-20 22:15:00.670] [info] 赠送"142488"房间结束,赠送结果:{"data":{"result":"0","unlock_num":60,"used_prop":{"prop_name":"粉丝荧光棒","prop_id":268,"attack":0,"child_prop_list":[],"prop_type":"2"},"unlock_level":10,"ry":0,"total_num":60,"txn_joutnal_id":0,"messages":["type@=dgb/rid@=142488/gfid@=824/gs@=0/uid@=433070858/nn@=真打不过吧/ic@=avatar_v3@S202112@Sc06f66f9087347159c009f6aea4ed267/eid@=0/eic@=20052/level@=5/dw@=0/gfcnt@=2/hits@=2/bcnt@=1/bst@=3/ct@=0/el@=/cm@=0/bnn@=玩机器/bl@=1/brid@=6979222/hc@=401924f444a9239d9971c32153355ccc/sahf@=0/fc@=0/gpf@=1/pid@=268/bnid@=1/bnl@=1/receive_uid@=6058512/receive_nn@=Nostalie/pfm@=29913/pma@=433129930/mss@=433129944/"],"list":[{"devote":0,"mob_icon":"https://gfs-op.douyucdn.cn/dygift/1707/099be25bd8ec15e17218fd17dfdeff1e.png","mob_chat_pic":"https://gfs-op.douyucdn.cn/dygift/1707/099be25bd8ec15e17218fd17dfdeff1e.png","gif":"https://gfs-op.douyucdn.cn/dygift/1612/982ac6fbc3ec3cbfb126ef8a6d3427a3.gif","mob_gif":"https://gfs-op.douyucdn.cn/dygift/2019/07/10/dbe29c8589a821a40ed35ecd81f6e3d6.gif","icon":"https://gfs-op.douyucdn.cn/dygift/1612/9e8e5a8a3c442933926d877d62b08b1b.png","description":"","rel_id":"520","description2":"","prop_type":"2","send_pic":"https://gfs-op.douyucdn.cn/dygift/1707/099be25bd8ec15e17218fd17dfdeff1e.png","type":2,"chat_pic":"https://gfs-op.douyucdn.cn/dygift/1612/ab8d2f5b9cb715c3b56fc803a79bc8db.gif","attack":0,"price":"10","intro":"","expiry":30,"exp":1,"biz_tag":"","met":1642521599,"is_valuable":0,"level":0,"prop_id":23,"count":1,"intimate":1,"border_color":"#5a63d6","level_time":0,"click_hint":"","name":"稳","is_click":1},{"devote":0,"mob_icon":"https://gfs-op.douyucdn.cn/dygift/1705/b63e879f49db157a4f17e6a3ab5c9e19.png","mob_chat_pic":"https://gfs-op.douyucdn.cn/dygift/1705/b63e879f49db157a4f17e6a3ab5c9e19.png","gif":"https://gfs-op.douyucdn.cn/dygift/1705/92c614debee11c3db11f853f3c02ed91.gif","mob_gif":"https://gfs-op.douyucdn.cn/dygift/1808/38a14a06796b6ac2e93443a2a5414e2d.gif","icon":"https://gfs-op.douyucdn.cn/dygift/1705/7db9beee246848252f1c7fe916259f4e.png","description":"","rel_id":"824","description2":"","prop_type":"2","send_pic":"https://gfs-op.douyucdn.cn/dygift/1705/b63e879f49db157a4f17e6a3ab5c9e19.png","type":2,"chat_pic":"https://gfs-op.douyucdn.cn/dygift/1705/c78bd03226f8cc00d60122bf9260490c.gif","attack":0,"price":"10","intro":"粉丝们,挥舞起你们的荧光棒~","expiry":1,"exp":1,"biz_tag":"","met":1640015999,"is_valuable":0,"level":0,"prop_id":268,"count":3,"intimate":1,"border_color":"#f76300","level_time":0,"click_hint":"","name":"粉丝荧光棒","is_click":1}],"mst":""},"error":0,"msg":"ok","result":0}
[2021-12-20 22:15:00.671] [info] 获取"6657"房间获取did值开始
[2021-12-20 22:15:00.754] [info] 获取"6657"房间获取did值结束,成功:61899676
[2021-12-20 22:15:03.756] [info] 赠送"6657"房间开始,数量:3
[2021-12-20 22:15:03.817] [info] 赠送"6657"房间结束,赠送结果:{"data":{},"error":124,"msg":"房间状态异常","result":124}

错误124,可能是因为玩机器房间号是靓号?

大佬,赠送失败,日志重复如下,求修复

[2021-04-25 09:30:57.915] [info] 获取"88660"房间获取did值开始
[2021-04-25 09:30:58.008] [info] 获取"88660"房间获取did值结束,成功:247149538
[2021-04-25 09:31:01.010] [info] 赠送"88660"房间开始,数量:NaN
[2021-04-25 09:31:01.047] [info] 赠送"88660"房间结束,赠送结果:{"data":{},"error":1000,"msg":"参数绑定异常: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Integer' for property 'num'; nested exception is java.lang.NumberFormatException: For input string: "NaN""}

以上是日志内容。今天我发现如果按下CAPSLOCK键切换一下英文输入法输入%,貌似可以了。明天再测试一下再给大佬反馈。

还是有点BUG 老哥

小意见:
我是每天设置的定时任务 到点了软件就会自动运行,就没管了 ,但是我发现 最近 一打开就显示任务完成 然后不会自动获取荧光棒 的数量 ,非得手动操作一下 他才开始触发任务

希望能更改分配荧光棒的逻辑

说实话,百分比分荧光棒挺鸡肋的,希望能改为大部分直播间只送1个荧光棒保牌,其余剩下的荧光棒全部统一送给某个直播间,不然百分比送的话荧光棒少的时候挺难分配的,而且会漏直播间

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.