debug
This commit is contained in:
@@ -765,6 +765,7 @@ namespace {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Undocumented function
|
* Undocumented function
|
||||||
|
* 有个bug 如果传入是中英文结合/纯英文/纯数字,则是返回是空
|
||||||
*
|
*
|
||||||
* @param string $strZh
|
* @param string $strZh
|
||||||
* @return string
|
* @return string
|
||||||
@@ -781,6 +782,11 @@ namespace {
|
|||||||
|
|
||||||
$strPinYin = trim((string) $strPinYin);
|
$strPinYin = trim((string) $strPinYin);
|
||||||
|
|
||||||
|
if (!is_string($strPinYin) || trim($strPinYin) === '') {
|
||||||
|
return 'k_' . substr(sha1($strZh), 0, 12);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $strPinYin;
|
return $strPinYin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,11 @@ class VideoInfoPage extends BasePage
|
|||||||
if (empty($this->arrVideo)) {
|
if (empty($this->arrVideo)) {
|
||||||
|
|
||||||
$arrVideo = json_decode($this->getContent(), true);
|
$arrVideo = json_decode($this->getContent(), true);
|
||||||
|
// $arrVideo = $arrVideo['list'][0]; // 这个日志会报错
|
||||||
|
$arrVideo = $arrVideo['list'][0] ?? [];
|
||||||
|
|
||||||
$arrVideo = $arrVideo['list'][0];
|
$arrVideo = $arrVideo['list'][0];
|
||||||
|
|
||||||
// print_r($arrVideo);
|
// print_r($arrVideo);
|
||||||
|
|
||||||
$strPlayUrl = $arrVideo['vod_play_url'];
|
$strPlayUrl = $arrVideo['vod_play_url'];
|
||||||
|
|||||||
@@ -343,6 +343,8 @@ EOD;
|
|||||||
public function tagWz($tag)
|
public function tagWz($tag)
|
||||||
{
|
{
|
||||||
$strWords = isset($tag['wz']) ? $tag['wz'] : '';
|
$strWords = isset($tag['wz']) ? $tag['wz'] : '';
|
||||||
|
$strWords = $this->customBuildVar($strWords);
|
||||||
|
echo $strWords;
|
||||||
|
|
||||||
$parse = <<<EOD
|
$parse = <<<EOD
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user