Ignore:
Timestamp:
2011/01/18 20:07:53 (13 years ago)
Author:
kotani
Message:

#880(mobile/sphoneディレクトリを削除)に対応。(mobile/shoppingディレクトリ)

  • mobileAction() を削除し、ビジネスロジック統一。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r19943 r19960  
    225225        if(Net_UserAgent_Mobile::isMobile() === true) { 
    226226            $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); 
    227         } 
    228     } 
    229  
    230     /** 
    231      * Page のプロセス(モバイル). 
    232      * 
    233      * @return void 
    234      */ 
    235     function mobileAction() { 
    236         $objView = new SC_MobileView(); 
    237         $objSiteSess = new SC_SiteSession(); 
    238         $objCartSess = new SC_CartSession(); 
    239         $objCustomer = new SC_Customer(); 
    240         $objCookie = new SC_Cookie(); 
    241         $this->objFormParam = new SC_FormParam();            // フォーム用 
    242         $helperMobile = new SC_Helper_Mobile_Ex(); 
    243         $objDb = new SC_Helper_DB_Ex(); 
    244         $this->lfInitParam();                                // パラメータ情報の初期化 
    245         $this->objFormParam->setParam($_POST);            // POST値の取得 
    246  
    247         // ユーザユニークIDの取得と購入状態の正当性をチェック 
    248         $uniqid = SC_Utils_Ex::sfCheckNormalAccess($objSiteSess, $objCartSess); 
    249  
    250         $this->tpl_uniqid = $uniqid; 
    251  
    252         //ダウンロード商品判定 
    253         $this->cartdown = $objDb->chkCartDown($objCartSess); 
    254  
    255         // ログインチェック 
    256         if($objCustomer->isLoginSuccess(true)) { 
    257             // すでにログインされている場合 
    258             if ($this->cartdown == 2) { 
    259                 // 会員情報の住所を受注一時テーブルに書き込む 
    260                 $objDb->sfRegistDelivData($uniqid, $objCustomer); 
    261                 // 正常に登録されたことを記録しておく 
    262                 $objSiteSess->setRegistFlag(); 
    263                 //カート内が全てダウンロード商品の場合は支払方法設定画面に転送 
    264                 SC_Response_Ex::sendRedirect('payment.php'); 
    265             } else { 
    266                 // お届け先設定画面に転送 
    267                 SC_Response_Ex::sendRedirect('deliv.php'); 
    268             } 
    269             exit; 
    270         } 
    271  
    272         // 携帯端末IDが一致する会員が存在するかどうかをチェックする。 
    273         $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); 
    274  
    275         // クッキー判定 
    276         $this->tpl_login_email = $objCookie->getCookie('login_email'); 
    277         if($this->tpl_login_email != "") { 
    278             $this->tpl_login_memory = "1"; 
    279227        } 
    280228    } 
Note: See TracChangeset for help on using the changeset viewer.