Add files via upload

pull/37/head
肥羊 3 years ago committed by GitHub
parent 39dd4ca025
commit d75cf7b508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      PHP/huya.php

@ -101,7 +101,7 @@ $reg = "/\<script\> window.HNF_GLOBAL_INIT = (.*) \<\/script\>/i";
preg_match($reg, $res, $realres);
$realdata = json_decode($realres[1], true);
if (in_array(0, $realdata)) {
if (in_array(0, $realdata) or in_array(1, $realdata)) {
header('location:' . $mediaurl);
exit();
} elseif ($realdata["roomInfo"]["eLiveStatus"] == 2) {

Loading…
Cancel
Save