Version.php 580 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\admin\controller;
  3. use app\common\controller\Backend;
  4. use think\Controller;
  5. use think\Request;
  6. use app\common\Enum\ChannelEnum;
  7. /**
  8. * 版本管理
  9. *
  10. * @icon fa fa-circle-o
  11. */
  12. class Version extends Backend
  13. {
  14. protected $model = null;
  15. public function _initialize()
  16. {
  17. parent::_initialize();
  18. $this->model = model('Version');
  19. $this->view->assign("platformList", ChannelEnum::getChannelMap());
  20. $this->assignconfig("platformList", json_encode(ChannelEnum::getChannelMap()));
  21. }
  22. }