| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | 
							- <?php
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Created by Yunbao
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Author: https://gitee.com/yunbaokeji
 
- // +—————————————————————————————————————————————————————————————————————
 
- // | Date: 2022-02-17
 
- // +—————————————————————————————————————————————————————————————————————
 
- /**
 
-  * 默认接口服务类
 
-  *
 
-  * @author: dogstar <chanzonghuang@gmail.com> 2014-10-04
 
-  */
 
- class Api_Default extends PhalApi_Api {
 
- 	public function getRules() {
 
-         return array(
 
-         );
 
- 	}
 
- 	
 
- 	/**
 
- 	 * 默认接口服务
 
- 	 * @return string title 标题
 
- 	 * @return string content 内容
 
- 	 * @return string version 版本,格式:X.X.X
 
- 	 * @return int time 当前时间戳
 
- 	 */
 
- 	private function index() {
 
-           
 
- 	}
 
- 	private function test() {
 
-         $stream=time();
 
-         $push=PrivateKeyA('rtmp',$stream,1);
 
-         $pull=PrivateKeyA('rtmp',$stream,0);
 
-         echo $push;
 
-         echo '<br>';
 
-         echo $pull;
 
-         exit;
 
-         // $start='21800';
 
-         // $end='21870';
 
-         // $nowtime=1541742938;
 
-         
 
-         // for($i=$start;$i<=$end;$i++){
 
-             // $nowtime--;
 
-             // $stream=$i.'_'.$nowtime;
 
-             
 
-             // $data=[
 
-                 // "uid"=>$i,
 
- 				// "ishot"=>1,
 
- 				// "isrecommend"=>1,
 
-                 
 
- 				// "showid"=>$nowtime,
 
- 				// "starttime"=>$nowtime,
 
- 				// "title"=>'',
 
- 				// "province"=>'',
 
- 				// "city"=>'好像在火星',
 
- 				// "stream"=>$stream,
 
- 				// "thumb"=>'',
 
- 				// "pull"=>'http://falsevideo.yunbaozb.com/4.mp4',
 
- 				// "lng"=>'',
 
- 				// "lat"=>'',
 
- 				// "type"=>'0',
 
- 				// "type_val"=>'0',
 
- 				// "isvideo"=>1,
 
- 				// "islive"=>1,
 
- 				// "anyway"=>'0',
 
- 				// "liveclassid"=>'1',
 
-             // ];
 
-             
 
-             // DI()->notorm->live->insert($data);
 
-             
 
-         // }
 
- 	}
 
-     
 
- } 
 
 
  |