人人商城

__init.php 661B

123456789101112131415161718192021222324
  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. $version_id = intval($_GPC['version_id']);
  7. if (!empty($version_id)) {
  8. load()->model('miniapp');
  9. $version_info = miniapp_version($version_id);
  10. }
  11. $account_api = WeAccount::createByUniacid();
  12. if (is_error($account_api)) {
  13. message($account_api['message'], url('account/display'));
  14. }
  15. $check_manange = $account_api->checkIntoManage();
  16. if (is_error($check_manange)) {
  17. itoast('', $account_api->displayUrl);
  18. } else {
  19. $account_type = $account_api->menuFrame;
  20. define('FRAME', $account_type);
  21. }