人人商城

version.ctrl.php 763B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. load()->model('miniapp');
  8. load()->model('welcome');
  9. $dos = array('home', 'display');
  10. $do = in_array($do, $dos) ? $do : 'home';
  11. $_W['page']['title'] = '小程序 - 管理';
  12. $version_id = intval($_GPC['version_id']);
  13. $wxapp_info = miniapp_fetch($_W['uniacid']);
  14. if (!empty($version_id)) {
  15. $version_info = miniapp_version($version_id);
  16. }
  17. if ($do == 'display') {
  18. $version_list = miniapp_version_all($_W['uniacid']);
  19. template('miniapp/version-display');
  20. }
  21. if ($do == 'home') {
  22. $notices = welcome_notices_get();
  23. template('miniapp/version-home');
  24. }