Commit b2817ffa authored by liuqiao's avatar liuqiao

上传图片调用新街口 不包含? 去除截取操作

parent 928df8df
......@@ -1003,7 +1003,7 @@ class Sell extends MY_Controller {
//房源封面图
$pic1 = $this->input->post('pic1', true);
/*逻辑错误
if($pic1 != '')
{
......@@ -1031,8 +1031,8 @@ class Sell extends MY_Controller {
$pic1 = preg_match("#\?#", $pic1) ? substr($pic1, 0, strpos($pic1, '?')) : $pic1;
}
//四、处理房源图片
$this->load->model('admin_check');
$pics = array();
......@@ -1061,7 +1061,7 @@ class Sell extends MY_Controller {
$pics['infotype'] = $fields_values['infotype'];
}
}
//print_r($pics);die;
// print_r($pics);die;
if(!empty($pics) && is_array($pics))
{
$pic_check = $this->sell_model->insert_house_pic($pics,
......@@ -1147,7 +1147,7 @@ class Sell extends MY_Controller {
$roomtype = $imageType[$key];
}
$filename = '';
$filename = $value;
if(preg_match("/\?/", $value))
{
$filename = substr($value, 0, strpos($value, '?'));
......
......@@ -146,7 +146,8 @@ class Sell_model extends Sell_base_model {
}
$token = explode("=",$v);
$pid = intval($token[1]);
$filename = substr($v, 0, strpos($v, '?'));
$filename = $v;
//$filename = substr($v, 0, strpos($v, '?'));
$idkind = substr( $token[0],-3);
$title = $pics['p_title'][$k]=='图片描述..限30字' ? '': strip_tags($pics['p_title'][$k]);
$sort = $pics['p_sort'][$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