Changeset 17720


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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/Smarty/templates/default/mobile/entry/confirm.tpl

    r16582 r17720  
    2424<div align="center">登録確認</div> 
    2525<hr> 
    26 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 
     26<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" utn> 
    2727    <input type="hidden" name="mode" value="complete"> 
    2828    <!--{foreach from=$list_data key=key item=item}--> 
  • 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.