Changeset 20174
- Timestamp:
- 2011/02/16 17:58:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php
r20137 r20174 129 129 $objFormParam->getValue('login_pass'))) { 130 130 131 // モバイルサイトで携帯アドレスの登録が無い場合 132 if(!$this->hasEmailMobile($objCustomer)) { 133 SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 134 exit; 131 // モバイルサイトで携帯アドレスの登録が無い場合、携帯アドレス登録ページへ遷移 132 if(SC_Display::detectDevice() == DEVICE_TYPE_MOBILE) { 133 if($this->hasEmailMobile($objCustomer) == false) { 134 SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 135 exit; 136 } 135 137 } 138 136 139 SC_Response_Ex::sendRedirect( 137 140 $this->getNextLocation($this->cartKey, $this->tpl_uniqid, … … 498 501 * ログインした会員の携帯メールアドレス登録があるかどうか 499 502 * 500 * 端末種別がモバイルの場合,ログインした会員の携帯メールアドレスの存在をチェックする503 * ログインした会員の携帯メールアドレスの存在をチェックする 501 504 * 502 505 * @param SC_Customer $objCustomer SC_Customer インスタンス … … 504 507 */ 505 508 function hasEmailMobile(&$objCustomer) { 506 switch (SC_Display::detectDevice()) { 507 case DEVICE_TYPE_MOBILE: 508 $objMobile = new SC_Helper_Mobile_Ex(); 509 if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 510 if ($objCustomer->hasValue('email_mobile')) { 511 return true; 512 } 513 } 514 break; 515 516 case DEVICE_TYPE_SMARTPHONE: 517 case DEVICE_TYPE_PC: 518 default: 509 $objMobile = new SC_Helper_Mobile_Ex(); 510 if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 511 if ($objCustomer->hasValue('email_mobile')) { 512 return true; 513 } 519 514 } 520 515 return false;
Note: See TracChangeset
for help on using the changeset viewer.