fix:更新已知bug,优化代码

This commit is contained in:
Ying
2022-11-28 19:11:12 +08:00
parent f6aee95cfc
commit 9445b206a2
1378 changed files with 53759 additions and 20789 deletions

View File

@@ -77,7 +77,7 @@ class ParseData
* @access public
* @param string $content
* @return string
* @throws \Psr\SimpleCache\InvalidArgumentException
* @throws InvalidArgumentException
*/
public static function setContentAttr(string $content): string
{
@@ -93,7 +93,7 @@ class ParseData
* @access public
* @param string $content
* @return string
* @throws \Psr\SimpleCache\InvalidArgumentException
* @throws InvalidArgumentException
*/
public static function getContentAttr(string $content): string
{
@@ -124,7 +124,7 @@ class ParseData
* @param $data
* @param bool $ready
* @return string
* @throws \Psr\SimpleCache\InvalidArgumentException
* @throws InvalidArgumentException
*/
public static function setImageAttr(string $image, $data, bool $ready = false): string
{
@@ -143,7 +143,8 @@ class ParseData
* 获取图片链接
* @access public
* @param string $image
* @return string
* @return string
* @throws InvalidArgumentException
*/
public static function getImageAttr(string $image): string
{
@@ -178,36 +179,6 @@ class ParseData
return $image;
}
/**
* 获取IP转换
* @access public
* @param $ip
* @return mixed
*/
public static function getIPAttr($ip)
{
if (!empty($ip)) {
$ip = long2ip($ip);
}
return $ip;
}
/**
* 设置IP转换
* @access public
* @param $ip
* @return mixed
*/
public static function setIPAttr($ip)
{
if (!empty($ip)) {
$ip = ip2long($ip);
}
return $ip;
}
/**
* 设置独立模板
* @access public