| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 | 
							- <?php
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Created by Yunbao
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Author: https://gitee.com/yunbaokeji
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Date: 2022-02-17
 
- // +—————————————————————————————————————————————————————————————————————
 
- class Domain_Live {
 
- 	
 
- 	public function createRoom($uid,$data) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->createRoom($uid,$data);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	
 
- 	public function changeLive($uid,$stream,$status) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->changeLive($uid,$stream,$status);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	public function stopRoom($uid,$stream) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->stopRoom($uid,$stream);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	public function stopInfo($stream) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->stopInfo($stream);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	public function checkLive($uid,$liveuid,$stream) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->checkLive($uid,$liveuid,$stream);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	public function roomCharge($uid,$liveuid,$stream) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->roomCharge($uid,$liveuid,$stream);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	public function getUserCoin($uid) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->getUserCoin($uid);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	public function isZombie($uid) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->isZombie($uid);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	
 
- 	public function getPop($touid) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->getPop($touid);
 
- 		return $rs;
 
- 	}
 
- 	public function getGiftList() {
 
-         $key='getGiftList';
 
- 		$list=getcaches($key);
 
- 		if(!$list){
 
- 			$model = new Model_Live();
 
-             $list = $model->getGiftList();
 
-             if($list){
 
-                 setcaches($key,$list);
 
-             }
 
- 		}
 
-         
 
-         foreach($list as $k=>$v){
 
- 			$list[$k]['gifticon']=get_upload_path($v['gifticon']);
 
- 		
 
- 		}	
 
-         
 
- 		return $list;
 
- 	}
 
- 	
 
- 	public function sendGift($uid,$liveuid,$stream,$giftid,$giftcount,$touids) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->sendGift($uid,$liveuid,$stream,$giftid,$giftcount,$touids);
 
- 		return $rs;
 
- 	}
 
- 	public function sendBarrage($uid,$liveuid,$stream,$giftid,$giftcount,$content) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->sendBarrage($uid,$liveuid,$stream,$giftid,$giftcount,$content);
 
- 		return $rs;
 
- 	}
 
- 	
 
- 	
 
- 	public function getUserHome($uid,$touid) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->getUserHome($uid,$touid);
 
- 		return $rs;
 
- 	}
 
-     
 
- 	public function getVotes($liveuid) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->getVotes($liveuid);
 
- 		return $rs;
 
- 	}
 
-     
 
- 	public function getContribut($uid,$liveuid,$showid) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->getContribut($uid,$liveuid,$showid);
 
- 		return $rs;
 
- 	}	
 
-     
 
- 	public function checkLiveing($uid,$stream) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->checkLiveing($uid,$stream);
 
- 		return $rs;
 
- 	}	
 
-     
 
-     public function getLiveInfo($liveuid) {
 
- 		$rs = array();
 
- 		$model = new Model_Live();
 
- 		$rs = $model->getLiveInfo($liveuid);
 
- 		return $rs;
 
- 	}
 
- }
 
 
  |