Commit 340dcdfa authored by hujun's avatar hujun

upload_video_num

parent 13bc4e80
...@@ -701,7 +701,7 @@ class Shop extends Basic ...@@ -701,7 +701,7 @@ class Shop extends Basic
$result['shop_videos'] = $s_house->getHouseVideoList($params['id']); $result['shop_videos'] = $s_house->getHouseVideoList($params['id']);
$result['shop_videos_length'] = $s_house->getHouseVideoLength(); $result['shop_videos_length'] = $s_house->getHouseVideoLength();
$result['upload_video_num'] = $s_house->getHouseVideoNum(); $result['upload_video_num'] = $s_house->getHouseVideoNum($params['id']);
unset($result['external_image_id']); unset($result['external_image_id']);
return $this->response("200", 'request success', $result); return $this->response("200", 'request success', $result);
} }
......
...@@ -1081,12 +1081,14 @@ class HouseService ...@@ -1081,12 +1081,14 @@ class HouseService
/** /**
* 商铺视频数量 * 商铺视频数量
* *
* @param $house_id
* @param int $is_check * @param int $is_check
* @return int|string * @return int|string
*/ */
public function getHouseVideoNum($is_check = 0) { public function getHouseVideoNum($house_id, $is_check = 0) {
$m_video = new GHousesVideo(); $m_video = new GHousesVideo();
$where['is_del'] = 0; $where['is_del'] = 0;
$where['house_id'] = $house_id;
switch ($is_check) { switch ($is_check) {
case 1 : case 1 :
$where['check_id'] = 0;break; //未审核 $where['check_id'] = 0;break; //未审核
......
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