Commit 5f6a26b2 authored by liuqiao's avatar liuqiao

图片不以http开头 跳过

parent 26b384f6
...@@ -147,6 +147,11 @@ class Sell_model extends Sell_base_model { ...@@ -147,6 +147,11 @@ class Sell_model extends Sell_base_model {
$token = explode("=",$v); $token = explode("=",$v);
$pid = intval($token[1]); $pid = intval($token[1]);
$filename = $v; $filename = $v;
// 图片不以http开头 跳过
if (strpos($v,'http') !== 0) {
continue;
}
//$filename = substr($v, 0, strpos($v, '?')); //$filename = substr($v, 0, strpos($v, '?'));
$idkind = substr( $token[0],-3); $idkind = substr( $token[0],-3);
$title = $pics['p_title'][$k]=='图片描述..限30字' ? '': strip_tags($pics['p_title'][$k]); $title = $pics['p_title'][$k]=='图片描述..限30字' ? '': strip_tags($pics['p_title'][$k]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment