Merge pull request #29 from 0x012FA733/dev

[fix] StormRaffle
This commit is contained in:
Lkeme 2020-04-19 21:26:07 +08:00 committed by GitHub
commit fd45081f1d

View File

@ -113,16 +113,12 @@ class StormRaffle extends BaseRaffle
Log::notice(self::formatInfo($raffle['raffle_id'], $num, '节奏风暴未实名或异常验证码'));
break;
}
if (isset($de_raw['data']) && empty($de_raw['data'])) {
Log::notice(self::formatInfo($raffle['raffle_id'], $num, '节奏风暴在小黑屋'));
break;
}
if ($de_raw['code'] == 0) {
Statistics::addSuccessList(self::ACTIVE_TITLE);
Log::notice(self::formatInfo($raffle['raffle_id'], $num, $de_raw['data']['mobile_content']));
break;
}
if ($de_raw['msg'] == '节奏风暴不存在' || $de_raw['msg'] == '节奏风暴抽奖过期') {
if ($de_raw['msg'] == '节奏风暴不存在' || $de_raw['msg'] == '节奏风暴抽奖过期' || $de_raw['msg'] == '没抢到') {
Log::notice(self::formatInfo($raffle['raffle_id'], $num, '节奏风暴已经结束'));
break;
}
@ -130,6 +126,10 @@ class StormRaffle extends BaseRaffle
Log::notice(self::formatInfo($raffle['raffle_id'], $num, '节奏风暴已经领取'));
break;
}
if (isset($de_raw['data']) && empty($de_raw['data'])) {
Log::notice(self::formatInfo($raffle['raffle_id'], $num, '节奏风暴在小黑屋'));
break;
}
if ($de_raw['msg'] == '你错过了奖励,下次要更快一点哦~') {
continue;
}