gq 7 年之前
父節點
當前提交
c8ec0602b7

+ 1 - 1
server/app/Http/Controllers/Admin/Share/InfoController.php

xqd
@@ -15,7 +15,7 @@ class InfoController extends Controller
     public function getMd5($str)
     {
         $start = strripos($str, '/');
-        $last = substr($str, $start+1);
+        $last = substr($str, $start);
         return $last;
     }
 

+ 2 - 2
server/resources/views/admin/share1.blade.php

xqd xqd
@@ -296,7 +296,7 @@
                     @if($dream['video'])
                         <div class="swiper-slide" style="width: 320px;height: 200px;">
                             {{--poster="{{$dream->poster}}"--}}
-                            <video poster="{{env('APP_URL').'/upload/vpic/'.$dream->dream_md5.'jpg'}}"  style="width: 100%;height:200px;" src="{{(mb_substr( $dream['video'], 0, 4 )=='http') ? $dream['video']:env('APP_URL').'/attachment/'.$dream['video']}}" controls >
+                            <video poster="{{env('APP_URL').'/upload/vpic/'.$dream->dream_md5.'.jpg'}}"  style="width: 100%;height:200px;" src="{{(mb_substr( $dream['video'], 0, 4 )=='http') ? $dream['video']:env('APP_URL').'/attachment/'.$dream['video']}}" controls >
                             </video>
                         </div>
                     @endif
@@ -430,7 +430,7 @@
 
                     <div class="box banner" >
                         {{--<video src="{{ $interaction['video'] }}" width="100%" style="max-height: 400px;" class="centerme" controls="controls"></video>--}}
-                        <video  width="100%" poster="{{env('APP_URL').'/upload/vpic/'.$interaction->interaction_md5.'jpg'}}" style="max-height: 400px;" class="centerme" src="{{(mb_substr( $interaction['video'], 0, 4 )=='http') ? $interaction['video']:env('APP_URL').'/attachment/'.$interaction['video']}}" controls >
+                        <video  width="100%" poster="{{env('APP_URL').'/upload/vpic/'.$interaction->interaction_md5.'.jpg'}}" style="max-height: 400px;" class="centerme" src="{{(mb_substr( $interaction['video'], 0, 4 )=='http') ? $interaction['video']:env('APP_URL').'/attachment/'.$interaction['video']}}" controls >
                         </video>
                     </div>
                     @endif