2 Star 1 Fork 0

南山大柱子 / 微擎_微信视频小程序

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
wxapp.php 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
<?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(){
/*预留方法*/
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zhuzi1991/wechat_video_app.git
git@gitee.com:zhuzi1991/wechat_video_app.git
zhuzi1991
wechat_video_app
微擎_微信视频小程序
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891