This commit is contained in:
aozhiwei 2019-07-29 14:52:51 +08:00
parent 58d8ff37b5
commit 6202759f09

View File

@ -55,7 +55,7 @@ class KefuController {
error_log($response);
$ret = json_decode($response, true);
if ($ret['errcode'] == 0) {
if ($gameid == 2001) {
if ($gameid >= 2001 && $gameid < 3000) {
if (count($ret['items']) > 0) {
$item = $ret['items'][rand() % count($ret['items'])];
error_log(json_encode($item));