Ignore:
Timestamp:
2008/12/02 19:42:01 (15 years ago)
Author:
takegami
Message:

モバイル簡単ログインを修正
モバイル登録時にdtb_customerにmobile_phone_idが挿入されない問題を追加
ログイン時にドコモのみphone_idを取り出せない不具合をSC_Customer.phpに記述

Location:
branches/version-2/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/SC_Customer.php

    r16741 r17720  
    9999     */ 
    100100    function checkMobilePhoneId() { 
    101         if (!isset($_SESSION['mobile']['phone_id']) || $_SESSION['mobile']['phone_id'] === false) { 
     101        //docomo用にデータを取り出す。 
     102        if(SC_MobileUserAgent::getCarrier() == 'docomo'){ 
     103            $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent::getId(); 
     104        } 
     105        if (!isset($_SESSION['mobile']['phone_id']) || $_SESSION['mobile']['phone_id'] === false) { 
    102106            return false; 
    103107        } 
     
    118122     */ 
    119123    function getCustomerDataFromMobilePhoneIdPass($pass) { 
    120         if (!isset($_SESSION['mobile']['phone_id']) || $_SESSION['mobile']['phone_id'] === false) { 
     124        //docomo用にデータを取り出す。 
     125        if(SC_MobileUserAgent::getCarrier() == 'docomo'){ 
     126            if($_SESSION['mobile']['phone_id'] == "" && strlen($_SESSION['mobile']['phone_id']) == 0) 
     127                $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent::getId(); 
     128        }  
     129        if(SC_MobileUserAgent::getCarrier() == 'docomo'){ 
     130            $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent::getId(); 
     131        } 
     132        if (!isset($_SESSION['mobile']['phone_id']) || $_SESSION['mobile']['phone_id'] === false) { 
    121133            return false; 
    122134        } 
  • branches/version-2/data/class/pages/entry/LC_Page_Entry.php

    r17151 r17720  
    607607            // 携帯メールアドレス 
    608608            $arrRegist['email_mobile'] = $arrRegist['email']; 
     609            //PHONE_IDを取り出す 
     610            $phoneId = SC_MobileUserAgent::getId(); 
     611            $arrRegist['mobile_phone_id'] =  $phoneId; 
    609612        } 
    610613 
Note: See TracChangeset for help on using the changeset viewer.