正在显示
1 个修改的文件
包含
12 行增加
和
0 行删除
@@ -1591,8 +1591,10 @@ class Algorithm extends Api | @@ -1591,8 +1591,10 @@ class Algorithm extends Api | ||
1591 | } | 1591 | } |
1592 | } | 1592 | } |
1593 | foreach ($sport_image as $k => $v) { | 1593 | foreach ($sport_image as $k => $v) { |
1594 | + if (!empty($v)) { | ||
1594 | $sport_image[$k] = cdnurl($v); | 1595 | $sport_image[$k] = cdnurl($v); |
1595 | } | 1596 | } |
1597 | + } | ||
1596 | 1598 | ||
1597 | if (strstr($BigArray['eat_image'], ',')) { | 1599 | if (strstr($BigArray['eat_image'], ',')) { |
1598 | $eat_image = explode(',', $BigArray['eat_image']); | 1600 | $eat_image = explode(',', $BigArray['eat_image']); |
@@ -1613,8 +1615,10 @@ class Algorithm extends Api | @@ -1613,8 +1615,10 @@ class Algorithm extends Api | ||
1613 | } | 1615 | } |
1614 | } | 1616 | } |
1615 | foreach ($eat_image as $k => $v) { | 1617 | foreach ($eat_image as $k => $v) { |
1618 | + if (!empty($v)) { | ||
1616 | $eat_image[$k] = cdnurl($v); | 1619 | $eat_image[$k] = cdnurl($v); |
1617 | } | 1620 | } |
1621 | + } | ||
1618 | 1622 | ||
1619 | if (strstr($BigArray['body_image'], ',')) { | 1623 | if (strstr($BigArray['body_image'], ',')) { |
1620 | $body_image = explode(',', $BigArray['body_image']); | 1624 | $body_image = explode(',', $BigArray['body_image']); |
@@ -1635,8 +1639,10 @@ class Algorithm extends Api | @@ -1635,8 +1639,10 @@ class Algorithm extends Api | ||
1635 | } | 1639 | } |
1636 | } | 1640 | } |
1637 | foreach ($body_image as $k => $v) { | 1641 | foreach ($body_image as $k => $v) { |
1642 | + if (!empty($v)) { | ||
1638 | $body_image[$k] = cdnurl($v); | 1643 | $body_image[$k] = cdnurl($v); |
1639 | } | 1644 | } |
1645 | + } | ||
1640 | 1646 | ||
1641 | if (strstr($BigArray['season_image'], ',')) { | 1647 | if (strstr($BigArray['season_image'], ',')) { |
1642 | $season_image = explode(',', $BigArray['season_image']); | 1648 | $season_image = explode(',', $BigArray['season_image']); |
@@ -1657,8 +1663,10 @@ class Algorithm extends Api | @@ -1657,8 +1663,10 @@ class Algorithm extends Api | ||
1657 | } | 1663 | } |
1658 | } | 1664 | } |
1659 | foreach ($season_image as $k => $v) { | 1665 | foreach ($season_image as $k => $v) { |
1666 | + if (!empty($v)) { | ||
1660 | $season_image[$k] = cdnurl($v); | 1667 | $season_image[$k] = cdnurl($v); |
1661 | } | 1668 | } |
1669 | + } | ||
1662 | 1670 | ||
1663 | if (strstr($BigArray['work_image'], ',')) { | 1671 | if (strstr($BigArray['work_image'], ',')) { |
1664 | $work_image = explode(',', $BigArray['work_image']); | 1672 | $work_image = explode(',', $BigArray['work_image']); |
@@ -1679,8 +1687,10 @@ class Algorithm extends Api | @@ -1679,8 +1687,10 @@ class Algorithm extends Api | ||
1679 | } | 1687 | } |
1680 | } | 1688 | } |
1681 | foreach ($work_image as $k => $v) { | 1689 | foreach ($work_image as $k => $v) { |
1690 | + if (!empty($v)) { | ||
1682 | $work_image[$k] = cdnurl($v); | 1691 | $work_image[$k] = cdnurl($v); |
1683 | } | 1692 | } |
1693 | + } | ||
1684 | 1694 | ||
1685 | 1695 | ||
1686 | if (strstr($BigArray['face_image'], ',')) { | 1696 | if (strstr($BigArray['face_image'], ',')) { |
@@ -1702,8 +1712,10 @@ class Algorithm extends Api | @@ -1702,8 +1712,10 @@ class Algorithm extends Api | ||
1702 | } | 1712 | } |
1703 | } | 1713 | } |
1704 | foreach ($face_image as $k => $v) { | 1714 | foreach ($face_image as $k => $v) { |
1715 | + if (!empty($v)) { | ||
1705 | $face_image[$k] = cdnurl($v); | 1716 | $face_image[$k] = cdnurl($v); |
1706 | } | 1717 | } |
1718 | + } | ||
1707 | $Return = [ | 1719 | $Return = [ |
1708 | //头部 | 1720 | //头部 |
1709 | 'Header' => [ | 1721 | 'Header' => [ |
-
请 注册 或 登录 后发表评论