人人商城

phoneapp.ctrl.php 680B

123456789101112131415161718192021222324
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. load()->model('phoneapp');
  4. if (!empty($_W['uniacid'])) {
  5. $version = intval($_GPC['v']);
  6. $version_info = phoneapp_version($version);
  7. if (!empty($version_info['modules'])) {
  8. foreach ($version_info['modules'] as $module) {
  9. if (!empty($module['account']) && intval($module['account']['uniacid']) > 0) {
  10. $_W['uniacid'] = $module['account']['uniacid'];
  11. }
  12. }
  13. }
  14. }
  15. $site = WeUtility::createModulePhoneapp($entry['module']);
  16. $method = 'doPage' . ucfirst($entry['do']);
  17. if(!is_error($site)) {
  18. $site->version = $version;
  19. exit($site->$method());
  20. }
  21. message('模块不存在或是 '.$method.' 方法不存在', '', 'error');