|
@@ -154,7 +154,10 @@ class Issue extends Controller
|
|
|
if (!$id) {
|
|
if (!$id) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, '参数错误');
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, '参数错误');
|
|
|
}
|
|
}
|
|
|
- if (!$winning_numbers) {
|
|
|
|
|
|
|
+ if (empty($winning_numbers)) {
|
|
|
|
|
+ $url = "https://ydpc28.co/api/pc28/list";
|
|
|
|
|
+ $result = file_get_contents($url);
|
|
|
|
|
+ return $this->success($result);
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, '参数错误');
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, '参数错误');
|
|
|
}
|
|
}
|
|
|
if (explode(',', $winning_numbers) < 3) {
|
|
if (explode(',', $winning_numbers) < 3) {
|