Ejemplo n.º 1
0
 } else {
     check::AlertExit('详细页字段' . ($k + 1) . '前部截取位不能为空,请检查!', -1);
 }
 if ($v[2]) {
     $intPostion = stripos($string, $v[2]);
     if ($intPostion === false) {
         print_r($string);
         exit;
     }
     //check::AlertExit('详细页字段'.($k+1).'尾部截取未成功,请检查!',-1);
     $strTemp = trim(substr($strTemp, 0, $intPostion));
     $string = trim(substr($string, $intPostion + strlen($v[2])));
 } else {
     check::AlertExit('详细页字段' . ($k + 1) . '尾部截取位不能为空,请检查!', -1);
 }
 $strTemp = $objSnoopy->stripHtml_a($strTemp);
 $strTemp = $objSnoopy->stripJs($strTemp);
 switch ($v[3]) {
     case 0:
         $arrImg = $objSnoopy->fetchimg($strTemp);
         if (!empty($arrImg)) {
             foreach ($arrImg as $k1 => $v1) {
                 if (stripos($v1, 'http') === false) {
                     $arrImg[$k1] = $arrGFetch[$_GET['id']]['list_host'] . $v1;
                     $strTemp = str_replace($v1, $arrImg[$k1], $strTemp);
                 }
             }
         }
         break;
     case 1:
         $strTemp = $objSnoopy->_striptext($strTemp);