acgnhiki / blrec

Bilibili Live Streaming Recorder 哔哩哔哩直播录制
GNU General Public License v3.0
574 stars 39 forks source link

PushDeer添加PushKey失败 #56

Closed threewatermeter closed 2 years ago

threewatermeter commented 2 years ago

微信截图_20220506141328

sihuan commented 2 years ago

请问你的 pushkey 在 PUD 与第一个字母 T 之间的数字 uid 有几位? 现在对 pushkey 的正则验证是按 [a-zA-Z\d]{41} 进行的(也就是字母或数字共 41 位),通过阅读 pushkey 的源码知,pushkey 的格式为PUD+uid+T+32位随机字符串,我不确定你的 uid 有多少位,如果不是 5 位的话就说明现在的正则匹配规则有点问题,需要改动一下正则匹配。

acgnhiki commented 2 years ago

请问你的 pushkey 在 PUD 与第一个字母 T 之间的数字 uid 有几位? 现在对 pushkey 的正则验证是按 [a-zA-Z\d]{41} 进行的(也就是字母或数字共 41 位),通过阅读 pushkey 的源码知,pushkey 的格式为PUD+uid+T+32位随机字符串,我不确定你的 uid 有多少位,如果不是 5 位的话就说明现在的正则匹配规则有点问题,需要改动一下正则匹配。

https://github.com/easychen/pushdeer/blob/ff21e69382669b3b1707e744268367897724ca31/api/app/Http/Controllers/PushDeerKeyController.php#L32

uid 位数不知,但应该不是固定的。

sihuan commented 2 years ago

~修的好快,失去混 pr 的机会~