记得上下班打卡 | git大法好,push需谨慎

Commit 6efefa83 authored by 洪全海's avatar 洪全海

1

parent 2ac6cc38
......@@ -14,6 +14,7 @@ use App\Models\Video;
use App\Repositories\HttpRepository;
use Illuminate\Http\Request;
use function json_decode;
use function str_replace;
class ShareController extends Controller
{
......@@ -60,12 +61,15 @@ class ShareController extends Controller
$height = $play['vheight'];
$width = $play['vwidth'];
$count = 1;
if ($height && $width) {
if ($height == '720' && $width == '1280') {
$hdUrl = $play['url'];
$hdUrl = str_replace('http', 'https', $hdUrl);
}
if ($height == '360' && $width == '640') {
$sdUrl = $play['url'];
$sdUrl = str_replace('http', 'https', $sdUrl);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment