Kaynağa Gözat

更新控制器

zmw 7 ay önce
ebeveyn
işleme
55e115ccd1

+ 5 - 1
app/Admin/Controllers/Company/CompanyController.php

@@ -215,8 +215,12 @@ class CompanyController extends Controller
             $query->whereHas("membersSetmeal", function ($query) {
                 $query->where('subsite_id', get_subsite_id());
             });
+        })->orderByRaw("field(audit,2,1,3,0)")->orderBy('id', 'desc');
 
-
+        $grid->model()->when(get_subsite_id() > 0, function ($query) {
+            $query->where('subsite_id', get_subsite_id());
+        })->when(Admin::user()->isRole('health'), function ($query) {
+            $query->where('is_health',1);
         })->orderByRaw("field(audit,2,1,3,0)")->orderBy('id', 'desc');
 
         $grid->id('ID');

+ 0 - 0
app/Admin/Controllers/Presentation/Indexcontroller.php → app/Admin/Controllers/Presentation/IndexController.php


+ 1 - 1
public/themes/default/views/mobile/app/health/jinjiang.blade.php

@@ -113,7 +113,7 @@
 
         var player2 = TCPlayer('player-container-id2', {
             sources: [{
-                src: '{{ theme_asset('mobile/gangwanjihua.mp4') }}?v=2', // 播放地址
+                src: '{{ theme_asset('mobile/gangwanjihua.mp4') }}?v=3', // 播放地址
             }],
             autoplay: true,
             licenseUrl: 'https://license.vod2.myqcloud.com/license/v2/1251164517_1/v_cube.license', // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl