|
@@ -22,8 +22,16 @@ class Vplatform extends Backend
|
|
|
// $this->model = new \app\admin\model\third\Platform;
|
|
// $this->model = new \app\admin\model\third\Platform;
|
|
|
$this->model = new \app\common\model\VideoPlatform;
|
|
$this->model = new \app\common\model\VideoPlatform;
|
|
|
// $this->model = model('platform');
|
|
// $this->model = model('platform');
|
|
|
- $videolist=model('videolist')->field('id,name')->select();
|
|
|
|
|
- $platformlist=model('platform')->field('id,name')->select();
|
|
|
|
|
|
|
+ $videolist=[];
|
|
|
|
|
+ $platformlist=[];
|
|
|
|
|
+ $video=model('videolist')->field('id,name')->select();
|
|
|
|
|
+ foreach ($video as $k => $v){
|
|
|
|
|
+ $videolist[$v['id']]=$v['name'];
|
|
|
|
|
+ }
|
|
|
|
|
+ $platform=model('platform')->field('id,name')->select();
|
|
|
|
|
+ foreach ($platform as $k => $v){
|
|
|
|
|
+ $platformlist[$v['id']]=$v['name'];
|
|
|
|
|
+ }
|
|
|
$this->view->assign('videolist', $videolist);
|
|
$this->view->assign('videolist', $videolist);
|
|
|
$this->view->assign('platformlist', $platformlist);
|
|
$this->view->assign('platformlist', $platformlist);
|
|
|
}
|
|
}
|