wpfw_ewei_shopv2/ewei_shopv2_api.php
2023-02-14 19:57:32 +08:00

30 lines
735 B
PHP

<?php
define('IN_SYS', true);
require '../framework/bootstrap.inc.php';
load()->web('common');
$uniacid = intval($_GPC['i']);
if (empty($uniacid)) {
exit('Access Denied.');
}
$site = WeUtility::createModuleSite('ewei_shopv2');
$_GPC['c'] = 'site';
$_GPC['a'] = 'entry';
$_GPC['m'] = 'ewei_shopv2';
$_GPC['do'] = 'mobile';
$_W['uniacid'] = (int) $_GPC['i'];
$_W['acid'] = (int) $_GPC['i'];
if (!isset($_GPC['r'])) {
$_GPC['r'] = 'app';
} else {
$_GPC['r'] = 'app.' . $_GPC['r'];
}
if (!is_error($site)) {
$method = 'doMobileMobile';
$site->uniacid = $uniacid;
$site->inMobile = true;
if (method_exists($site, $method)) {
$site->$method();
die();
}
}
?>