[fix] Silver2Coin

This commit is contained in:
Lkeme 2021-05-18 18:02:30 +08:00
parent 90a0c70d23
commit 65e9fe3cea
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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":[]}