Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeme committed Jul 25, 2018
1 parent bd8e562 commit 0590e7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RaffleHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private static function checkWeb()
// 计数 && 跳出
$total = count($de_raw['data']['list']);
if (!$total) {
Log::warning("网页端直播间 [" . self::$room_id . "] 抽奖列表为空,丢弃本次抽奖!");
Log::info("网页端直播间 [" . self::$room_id . "] 抽奖列表为空,丢弃本次抽奖!");
return false;
}
// 临时数组返回
Expand Down Expand Up @@ -199,7 +199,7 @@ private static function checkApp()
// 计数 && 跳出
$total = count($de_raw['data']['lotteryInfo']);
if (!$total) {
Log::warning("移动端直播间 [" . self::$room_id . "] 抽奖列表为空,丢弃本次抽奖!");
Log::info("移动端直播间 [" . self::$room_id . "] 抽奖列表为空,丢弃本次抽奖!");
return false;
}
// 临时数组返回
Expand Down Expand Up @@ -327,7 +327,7 @@ private static function lotteryApp(array $data)
$de_raw = json_decode($raw, true);
// 抽奖判断
if (array_key_exists('code', $de_raw) && $de_raw['code'] != 0) {
Log::warning("移动端参与{$data['title']}[{$data['raffle_id']}]抽奖加入失败,状态: {$de_raw['message']}!");
Log::info("移动端参与{$data['title']}[{$data['raffle_id']}]抽奖加入失败,状态: {$de_raw['message']}!");
} elseif (array_key_exists('code', $de_raw) && $de_raw['code'] == 0) {
Log::notice("移动端参与了房间[{$data['room_id']}]的{$data['title']}[{$data['raffle_id']}]抽奖, 状态: {$de_raw['data']['gift_desc']}!");
} else {
Expand Down

0 comments on commit 0590e7c

Please sign in to comment.