|
|
@@ -11,6 +11,7 @@ use Exception;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
use App\Constants\HttpStatus;
|
|
|
use App\Models\Wallet;
|
|
|
+use App\Models\SportStatistics;
|
|
|
|
|
|
/**
|
|
|
* 足球订单
|
|
|
@@ -187,6 +188,9 @@ class Order extends Controller
|
|
|
if (!empty($order['detail']['fixture_status'])) {
|
|
|
$order['detail']['fixture_status'] = Sport::getFixtureStatus($order['detail']['fixture_status']);
|
|
|
}
|
|
|
+
|
|
|
+ //赛事统计数据
|
|
|
+ $order['statistics'] = SportStatistics::where('data_id', $order['issue'])->get()->toArray();
|
|
|
ksort($order);
|
|
|
} catch (Exception $e) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR,$e->getMessage());
|