mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
[fix] Silver2Coin
This commit is contained in:
parent
90a0c70d23
commit
65e9fe3cea
@ -47,6 +47,7 @@ class Notice
|
||||
$custom_words = explode(',', getConf('filter_words', 'notify'));
|
||||
$total_words = array_merge($default_words, $custom_words);
|
||||
foreach ($total_words as $word) {
|
||||
if (empty($word)) continue;
|
||||
if (strpos($result, $word) !== false) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -65,11 +65,11 @@ class Silver2Coin
|
||||
|
||||
/**
|
||||
* @use 处理结果
|
||||
* @param int $type
|
||||
* @param string $type
|
||||
* @param array $data
|
||||
* @return bool
|
||||
*/
|
||||
private static function handle(int $type, array $data): bool
|
||||
private static function handle(string $type, array $data): bool
|
||||
{
|
||||
// {"code":403,"msg":"每天最多能兑换 1 个","message":"每天最多能兑换 1 个","data":[]}
|
||||
// {"code":403,"msg":"仅主站正式会员以上的用户可以兑换","message":"仅主站正式会员以上的用户可以兑换","data":[]}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user