objTable->getCol(['game_state' => Game::STATUS_FINISH], [ '_field' => 'id', '_where' => "create_time>='{$t}'", ]); $offers = $objOffer->objTable->getAll(['game_id' => $gameIds, 'state' => [Offer::STATUS_CLOSE, Offer::STATUS_FINISH]], [ '_field' => 'game_id, sum(offerall_int) offerall_int, sum(win_int) win_int', '_groupby' => 'game_id', ]); foreach ($offers as $v) { $ret = ThirdApi::reportGameResult($v['game_id'], $v['offerall_int'], $v['win_int']); } $c = count($offers); Eos::log("上报{$c}记录");