xiaogang 4 lat temu
rodzic
commit
95a9cce3dc
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      app/Http/Controllers/Api/DynamicController.php

+ 2 - 1
app/Http/Controllers/Api/DynamicController.php

xqd xqd
@@ -10,6 +10,7 @@ use App\Http\Params\DynamicParam;
 use App\Http\Params\DynamicZanParam;
 use App\Http\Params\UserReportParam;
 use App\Models\Banner;
+use App\Models\SystemConfig;
 use App\Services\DynamicService;
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\Cache;
@@ -95,7 +96,7 @@ class DynamicController extends Controller
             }
             $res['banner'] = $banner;
             $res['tag'] = DB::table("dynamic_tag")->orderBy('hot','desc')->limit(10)->get();
-            $res['fx'] = "这是风险提示";
+            $res['fx'] = SystemConfig::query()->where('id',1)->value("value");
         }catch (\Exception $exception){
             return $this->response->errorForbidden($exception->getMessage());
         }