瀏覽代碼

no message

BF-202210271038\Administrator 1 年之前
父節點
當前提交
7f055305d3
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      app/Http/Controllers/Api/UserController.php

+ 5 - 2
app/Http/Controllers/Api/UserController.php

@@ -3,6 +3,7 @@
 namespace App\Http\Controllers\Api;
 
 use App\Http\Controllers\FrontController;
+use App\Models\SysModels\Config;
 use App\Models\UserModels\WxRecord;
 use App\Models\UserModels\WxSignup;
 use App\Models\UserModels\WxUser;
@@ -86,8 +87,10 @@ class UserController extends FrontController
         $check = $this->checkLogin($m_id,$token);
         if(!$check) return $this->apiResponseError('',[],401);
 
-        $data['one_video'] = 'https://jhvideo.oss-cn-hangzhou.aliyuncs.com/9586e6413a90c0dded2d2d4bb558561e.mp4';
-        $data['two_video'] = 'https://jhvideo.oss-cn-hangzhou.aliyuncs.com/ea02e7ad005bec2fc02d869184d5e1b0.mp4';
+        $data['one_video'] = Config::where('key','one_video')->value('value');
+        $data['two_video'] = Config::where('key','two_video')->value('value');
+        $data['three_video'] = Config::where('key','three_video')->value('value');
+        $data['four_video'] = Config::where('key','four_video')->value('value');
         return $this->apiResponseSuccess('成功',$data);
     }