wesmiler 2 лет назад
Родитель
Сommit
beb01890e4
2 измененных файлов с 20 добавлено и 0 удалено
  1. 19 0
      app/Http/Controllers/Api/v1/IndexController.php
  2. 1 0
      routes/api.php

+ 19 - 0
app/Http/Controllers/Api/v1/IndexController.php

@@ -129,4 +129,23 @@ class IndexController extends webApp
         }
     }
 
+    /**
+     * 币种
+     * @return array
+     */
+    public function country()
+    {
+        $data = [
+            ['code'=>'CNY','name'=>'人民币','country'=>'中国','locale'=>'zh-cn','status'=>1],
+            ['code'=>'MYR','name'=>'林吉特','country'=>'马来西亚','locale'=>'mal','status'=>1],
+            ['code'=>'VND','name'=>'越南盾','country'=>'越南','locale'=>'vie','status'=>1],
+            ['code'=>'THB','name'=>'泰铢','country'=>'泰国','locale'=>'tha','status'=>1],
+            ['code'=>'IDR','name'=>'卢比','country'=>'印度尼西亚','locale'=>'ind','status'=>1],
+            ['code'=>'JAY','name'=>'日元','country'=>'日本','locale'=>'jap','status'=>1],
+            ['code'=>'KRW','name'=>'韩元','country'=>'韩国','locale'=>'sk','status'=>1],
+            ['code'=>'EUR','name'=>'欧元','country'=>'法国','locale'=>'fr','status'=>1],
+            ['code'=>'USD','name'=>'美元','country'=>'美国','locale'=>'en','status'=>1],
+        ];
+        return showJson(1010, true, $data);
+    }
 }

+ 1 - 0
routes/api.php

@@ -45,6 +45,7 @@ Route::prefix('v1')->group(function(){
     Route::post('/index/rechargeMeals', [\App\Http\Controllers\Api\v1\IndexController::class, 'rechargeMeals']);
     Route::post('/index/notice', [\App\Http\Controllers\Api\v1\IndexController::class, 'noticeCount']);
     Route::post('/index/video', [\App\Http\Controllers\Api\v1\IndexController::class, 'videoList']);
+    Route::post('/index/country', [\App\Http\Controllers\Api\v1\IndexController::class, 'country']);
     Route::match(['get','post'],'/lang/switch', [\App\Http\Controllers\Api\LangController::class, 'switch']);
 
     // 直播