无
//后台中添加 确保自己的api接口打开 //1.在application-api-controller-provide.php中加入 //获取开放类型 选项卡 新增代码 public function getTypes(){ $cursor= Db::name('type')->where('type_status','in',[1])->where('type_id','in',[1,2,3,4,20,21])->order('type_sort')->select(); echo json_encode($cursor,JSON_UNESCAPED_UNICODE); }
//获取轮播图 //新增代码 public function getlunbo() { $cursor= Db::name('vod')->where('vod_level','in',[9])->select(); echo json_encode($cursor,JSON_UNESCAPED_UNICODE);
} //登录 新增代码 public function login($uname,$pwd) { $cursor= Db::name('user')->where('user_name',$uname)->where('user_pwd',$pwd)->select(); echo json_encode($cursor,JSON_UNESCAPED_UNICODE);