|
|
@@ -7,6 +7,7 @@ use App\Models\Sport as SportModel;
|
|
|
use App\Models\SportEvent;
|
|
|
use App\Models\SportTeam;
|
|
|
use App\Models\SportLeague;
|
|
|
+use App\Models\SportStatistics;
|
|
|
use Exception;
|
|
|
use App\Constants\HttpStatus;
|
|
|
use App\Services\SportClientService;
|
|
|
@@ -139,6 +140,9 @@ class Sport extends Controller
|
|
|
$info['guest_team'] = $info['guest_team'] ?? SportTeam::getTeamName($info['guest_team_id']);
|
|
|
$info['league'] = $info['league'] ?? SportLeague::getLeagueName($info['league']);
|
|
|
|
|
|
+ //赛事统计数据
|
|
|
+ $info['statistics'] = SportStatistics::where('data_id', $info['data_id'])->get()->toArray();
|
|
|
+
|
|
|
} catch (Exception $e) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR,$e->getMessage());
|
|
|
}
|