移动千里眼播放地址的代理
parent
1593990351
commit
8cbe7fd09b
|
|
@ -763,9 +763,14 @@ class DeviceController extends Controller
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$address = (string) data_get($result, 'data.url');
|
||||||
|
if (config('services.ydqly.play_proxy')) {
|
||||||
|
$address = str_replace('open.andmu.cn', 'lcyd.peidikeji.cn', $address);
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'type' => 'iframe',
|
'type' => 'iframe',
|
||||||
'address' => str_replace('open.andmu.cn', 'lcny-api.peidikeji.cn', (string) data_get($result, 'data.url')),
|
'address' => $address,
|
||||||
'expires' => data_get($result, 'data.expiresIn'),
|
'expires' => data_get($result, 'data.expiresIn'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ return [
|
||||||
'appid' => env('YDQLY_APPID'),
|
'appid' => env('YDQLY_APPID'),
|
||||||
'secret' => env('YDQLY_SECRET'),
|
'secret' => env('YDQLY_SECRET'),
|
||||||
'rsa' => env('YDQLY_RSA'),
|
'rsa' => env('YDQLY_RSA'),
|
||||||
|
// 播放地址缓存
|
||||||
|
'play_proxy' => env('YDQLY_PLAY_PROXY'),
|
||||||
],
|
],
|
||||||
|
|
||||||
// 中国电信魔镜
|
// 中国电信魔镜
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue