1
This commit is contained in:
parent
30bb3449e4
commit
146762afee
@ -55,7 +55,16 @@ class KefuController {
|
||||
}
|
||||
$ret = json_decode($response, true);
|
||||
if ($ret['errcode'] == 0) {
|
||||
if ($gameid == 2001) {
|
||||
if (count($ret['items']) > 0) {
|
||||
$item = $ret['items'][rand() % count($ret['items'])];
|
||||
return array($item);
|
||||
} else {
|
||||
return $ret['items'];
|
||||
}
|
||||
} else {
|
||||
return $ret['items'];
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user