Commit 13bc4e80 authored by hujun's avatar hujun

upload_video_num

parent 0718fa8f
......@@ -701,6 +701,7 @@ class Shop extends Basic
$result['shop_videos'] = $s_house->getHouseVideoList($params['id']);
$result['shop_videos_length'] = $s_house->getHouseVideoLength();
$result['upload_video_num'] = $s_house->getHouseVideoNum();
unset($result['external_image_id']);
return $this->response("200", 'request success', $result);
}
......
......@@ -1058,7 +1058,7 @@ class HouseService
$result_[$k]['check_time'] = $v['check_time'];
}
return $result_;
return $result;
}
/**
......@@ -1078,4 +1078,22 @@ class HouseService
return $result_;
}
/**
* 商铺视频数量
*
* @param int $is_check
* @return int|string
*/
public function getHouseVideoNum($is_check = 0) {
$m_video = new GHousesVideo();
$where['is_del'] = 0;
switch ($is_check) {
case 1 :
$where['check_id'] = 0;break; //未审核
case 2 :
$where['check_id'] = ['>', 0];break; //已审核
}
$num = $m_video->getTotal($where);
return $num;
}
}
\ No newline at end of file
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