作者 王智

xiugai

@@ -1591,7 +1591,9 @@ class Algorithm extends Api @@ -1591,7 +1591,9 @@ class Algorithm extends Api
1591 } 1591 }
1592 } 1592 }
1593 foreach ($sport_image as $k => $v) { 1593 foreach ($sport_image as $k => $v) {
1594 - $sport_image[$k] = cdnurl($v); 1594 + if (!empty($v)) {
  1595 + $sport_image[$k] = cdnurl($v);
  1596 + }
1595 } 1597 }
1596 1598
1597 if (strstr($BigArray['eat_image'], ',')) { 1599 if (strstr($BigArray['eat_image'], ',')) {
@@ -1613,7 +1615,9 @@ class Algorithm extends Api @@ -1613,7 +1615,9 @@ class Algorithm extends Api
1613 } 1615 }
1614 } 1616 }
1615 foreach ($eat_image as $k => $v) { 1617 foreach ($eat_image as $k => $v) {
1616 - $eat_image[$k] = cdnurl($v); 1618 + if (!empty($v)) {
  1619 + $eat_image[$k] = cdnurl($v);
  1620 + }
1617 } 1621 }
1618 1622
1619 if (strstr($BigArray['body_image'], ',')) { 1623 if (strstr($BigArray['body_image'], ',')) {
@@ -1635,7 +1639,9 @@ class Algorithm extends Api @@ -1635,7 +1639,9 @@ class Algorithm extends Api
1635 } 1639 }
1636 } 1640 }
1637 foreach ($body_image as $k => $v) { 1641 foreach ($body_image as $k => $v) {
1638 - $body_image[$k] = cdnurl($v); 1642 + if (!empty($v)) {
  1643 + $body_image[$k] = cdnurl($v);
  1644 + }
1639 } 1645 }
1640 1646
1641 if (strstr($BigArray['season_image'], ',')) { 1647 if (strstr($BigArray['season_image'], ',')) {
@@ -1657,7 +1663,9 @@ class Algorithm extends Api @@ -1657,7 +1663,9 @@ class Algorithm extends Api
1657 } 1663 }
1658 } 1664 }
1659 foreach ($season_image as $k => $v) { 1665 foreach ($season_image as $k => $v) {
1660 - $season_image[$k] = cdnurl($v); 1666 + if (!empty($v)) {
  1667 + $season_image[$k] = cdnurl($v);
  1668 + }
1661 } 1669 }
1662 1670
1663 if (strstr($BigArray['work_image'], ',')) { 1671 if (strstr($BigArray['work_image'], ',')) {
@@ -1679,7 +1687,9 @@ class Algorithm extends Api @@ -1679,7 +1687,9 @@ class Algorithm extends Api
1679 } 1687 }
1680 } 1688 }
1681 foreach ($work_image as $k => $v) { 1689 foreach ($work_image as $k => $v) {
1682 - $work_image[$k] = cdnurl($v); 1690 + if (!empty($v)) {
  1691 + $work_image[$k] = cdnurl($v);
  1692 + }
1683 } 1693 }
1684 1694
1685 1695
@@ -1702,7 +1712,9 @@ class Algorithm extends Api @@ -1702,7 +1712,9 @@ class Algorithm extends Api
1702 } 1712 }
1703 } 1713 }
1704 foreach ($face_image as $k => $v) { 1714 foreach ($face_image as $k => $v) {
1705 - $face_image[$k] = cdnurl($v); 1715 + if (!empty($v)) {
  1716 + $face_image[$k] = cdnurl($v);
  1717 + }
1706 } 1718 }
1707 $Return = [ 1719 $Return = [
1708 //头部 1720 //头部