Ken пре 1 недеља
родитељ
комит
79e191abea
2 измењених фајлова са 10 додато и 1 уклоњено
  1. 9 0
      app/Http/Controllers/api/Issue.php
  2. 1 1
      routes/api.php

+ 9 - 0
app/Http/Controllers/api/Issue.php

@@ -11,6 +11,15 @@ use Exception;
 
 class Issue extends BaseController
 {
+
+
+    function yuanTou()
+    {
+        $data = file_get_contents("https://pc28ya.com/index.php?action=getMyOpensJson");
+        return $this->success($data);
+    }
+
+
     /**
      * @api {get} /issue/history 天机
      * @apiGroup Issue

+ 1 - 1
routes/api.php

@@ -21,7 +21,7 @@ Route::prefix('/issue')->group(function () {
     Route::get("/countdown", [Issue::class, 'countdown']);
     Route::get("/prediction", [Issue::class, 'prediction']);
     Route::get("/history", [Issue::class, 'history']);
-
+    Route::get("/yuanTou", [Issue::class, 'yuanTou']);