Commit ab453590 authored by chenlei's avatar chenlei

修复发布房源图片不进入审核库

parent 90b16020
......@@ -153,7 +153,7 @@ class Sell_model extends Sell_base_model {
continue;
}
//$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]);
$sort = $pics['p_sort'][$k];
$flg = $sort == 9 || $sort == 10 ? 1 : 0;//图库选择的图片不需要再次审核。
......@@ -192,24 +192,25 @@ class Sell_model extends Sell_base_model {
'flg' => $flg, 'isfrom' => 2, 'isinfotype' => $pics['infotype']
);
$picid = $this->pic_model->insert_house_pic($insert_data_house, $tbl, $house_id);
if($idkind=='pid' && $pid > 0 && !$fromblockimg && !$flg)
// if($idkind=='pid' && $pid > 0 && !$fromblockimg && !$flg)
if(!$fromblockimg && !$flg)
{
//审图用,获取缓存图片库中的图片信息
$parr = $this->pic_model->find_temp_by_id($pid);
// $parr = $this->pic_model->find_temp_by_id($pid);
//审图用,组合图片信息
$return[$temp]['pictbl'] = $this->pic_model->get_upload_table_name($tbl, $house_id);
$return[$temp]['picid'] = $picid;
$return[$temp]['picurl'] = $filename;
$return[$temp]['sort'] = $sort;
$return[$temp]['surface'] = 0;
if(isset($parr['from_device']) && $parr['from_device'] != '')
{
$return[$temp]['from_device'] = $parr['from_device'];
}
if (isset($parr['file_md5']) && $parr['file_md5'] != '')
{
$return[$temp]['file_md5'] = $parr['file_md5'];
}
// if(isset($parr['from_device']) && $parr['from_device'] != '')
// {
// $return[$temp]['from_device'] = $parr['from_device'];
// }
// if (isset($parr['file_md5']) && $parr['file_md5'] != '')
// {
// $return[$temp]['file_md5'] = $parr['file_md5'];
// }
$temp++;
}
......
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