|
@@ -101,11 +101,38 @@ class MobileServer extends BaseServer
|
|
|
{
|
|
|
//部分控制器不需要使用session.
|
|
|
$act = $_GET['act'];
|
|
|
- if ($act == 'refill') {
|
|
|
+ if(defined('COMPANY_NAME') && COMPANY_NAME === 'XYZ_COMPANY')
|
|
|
+ {
|
|
|
+ if ($act == 'refill') {
|
|
|
+ Base::mobile_control();
|
|
|
+ } else {
|
|
|
+ fcgi_header("Content-Type: text/html; charset=UTF-8");
|
|
|
+ echo "no such file.";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if(!isset($_GET['act'])) {
|
|
|
+ $_GET['act'] = 'index';
|
|
|
+ }
|
|
|
+ if(!isset($_GET['op'])) {
|
|
|
+ $_GET['op'] = 'index';
|
|
|
+ }
|
|
|
+ if(!isset($_POST['act'])) {
|
|
|
+ $_POST['act'] = 'index';
|
|
|
+ }
|
|
|
+ if(!isset($_POST['op'])) {
|
|
|
+ $_POST['op'] = 'index';
|
|
|
+ }
|
|
|
+
|
|
|
+ //部分控制器不需要使用session.
|
|
|
+ $act = $_GET['act'];
|
|
|
+ if($act != 'refill') {
|
|
|
+ session::instance()->start();
|
|
|
+ Log::record("member_id=" . session_helper::memberid(),Log::DEBUG);
|
|
|
+ }
|
|
|
+
|
|
|
Base::mobile_control();
|
|
|
- } else {
|
|
|
- fcgi_header("Content-Type: text/html; charset=UTF-8");
|
|
|
- echo "no such file.";
|
|
|
}
|
|
|
}
|
|
|
}
|