人人商城

entrance-link.ctrl.php 861B

12345678910111213141516171819202122232425
  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('module');
  8. $dos = array('entrance_link');
  9. $do = in_array($do, $dos) ? $do : 'entrance_link';
  10. permission_check_account_user('wxapp_entrance_link');
  11. $_W['page']['title'] = '入口页面 - 小程序 - 管理';
  12. $wxapp_info = miniapp_fetch($_W['uniacid']);
  13. if ($do == 'entrance_link') {
  14. $wxapp_modules = pdo_getcolumn('wxapp_versions', array('id' => $version_id), 'modules');
  15. $module_info = array();
  16. if (!empty($wxapp_modules)) {
  17. $module_info = iunserializer($wxapp_modules);
  18. $module_info = pdo_getall('modules_bindings', array('module' => array_keys($module_info), 'entry' => 'page'));
  19. }
  20. template('wxapp/version-entrance');
  21. }