代码拉取完成,页面将自动刷新
<?php
/**
* wechat_video模块小程序接口定义
*
* @author wq842939018
* @url
*/
defined('IN_IA') or exit('Access Denied');
class Wechat_videoModuleWxapp extends WeModuleWxapp
{
public function doPagetest_test()
{
global $_GPC, $_W;
$errno = 0;
$message = '返回消息';
$data = array(1, 2, 3);
return $this->result($errno, $message, $data);
}
/**
* 查询视频列表
* @param array $condition
*/
public function doPageVideo_list()
{
global $_GPC, $_W;
$condition = array();
$type_id = intval($_GPC['type_id']);
if ($type_id) {
$condition['type_id'] = $type_id;
};
$errno = 0;
$message = '返回消息';
$data = pdo_getall('wechat_video_tencent_video_list', $condition);
return $this->result($errno, $message, $data);
}
/**
* 查询视频分类列表
* @param array $condition
*/
public function doPageVideo_type($condition = array())
{
global $_GPC, $_W;
$errno = 0;
$message = '返回消息';
$data = pdo_getall('wechat_video_tencent_video_type', $condition);
return $this->result($errno, $message, $data);
}
/**获取一条视频
* @param string $vid
*/
function doPageVideo_rows($vid = '')
{
global $_GPC, $_W;
$vid = $_GPC['vid'];
$errno = 0;
$message = '返回消息';
$data = pdo_get('wechat_video_tencent_video_list', array('vid' => $vid));
return $this->result($errno, $message, $data);
}
/**
* 获取系统配置,无需参数
*/
function doPageConfig(){
/*预留方法*/
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。