Changeset 21515 for branches/version-2_12-dev/data/class/SC_Customer.php
- Timestamp:
- 2012/02/15 20:18:09 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Customer.php
r21514 r21515 113 113 //docomo用にデータを取り出す。 114 114 if (SC_MobileUserAgent_Ex::getCarrier() == 'docomo') { 115 if($_SESSION['mobile']['phone_id'] == ""&& strlen($_SESSION['mobile']['phone_id']) == 0)115 if($_SESSION['mobile']['phone_id'] == '' && strlen($_SESSION['mobile']['phone_id']) == 0) 116 116 $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent_Ex::getId(); 117 117 } … … 137 137 //docomo用にデータを取り出す。 138 138 if (SC_MobileUserAgent_Ex::getCarrier() == 'docomo') { 139 if($_SESSION['mobile']['phone_id'] == ""&& strlen($_SESSION['mobile']['phone_id']) == 0)139 if($_SESSION['mobile']['phone_id'] == '' && strlen($_SESSION['mobile']['phone_id']) == 0) 140 140 $_SESSION['mobile']['phone_id'] = SC_MobileUserAgent_Ex::getId(); 141 141 } … … 227 227 228 228 $objQuery = new SC_Query_Ex(); 229 $email = $objQuery->get('email', 'dtb_customer', "customer_id = ?", array($_SESSION['customer']['customer_id']));229 $email = $objQuery->get('email', 'dtb_customer', 'customer_id = ?', array($_SESSION['customer']['customer_id'])); 230 230 if ($email == $_SESSION['customer']['email']) { 231 231 // モバイルサイトの場合は携帯のメールアドレスが登録されていることもチェックする。 232 232 // ただし $dont_check_email_mobile が true の場合はチェックしない。 233 233 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE && !$dont_check_email_mobile) { 234 $email_mobile = $objQuery->get('email_mobile', 'dtb_customer', "customer_id = ?", array($_SESSION['customer']['customer_id']));234 $email_mobile = $objQuery->get('email_mobile', 'dtb_customer', 'customer_id = ?', array($_SESSION['customer']['customer_id'])); 235 235 return isset($email_mobile); 236 236 } … … 250 250 return $point; 251 251 } else { 252 return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : "";252 return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ''; 253 253 } 254 254 } … … 303 303 function updateOrderSummary($customer_id) { 304 304 $objQuery = new SC_Query_Ex(); 305 $arrOrderSummary = $objQuery->getRow('SUM( payment_total) as buy_total, COUNT(order_id) as buy_times,MAX( create_date) as last_buy_date, MIN(create_date) as first_buy_date','dtb_order', "customer_id = ? AND del_flg = 0 AND status <> ?",array($customer_id,ORDER_CANCEL));305 $arrOrderSummary = $objQuery->getRow('SUM( payment_total) as buy_total, COUNT(order_id) as buy_times,MAX( create_date) as last_buy_date, MIN(create_date) as first_buy_date','dtb_order','customer_id = ? AND del_flg = 0 AND status <> ?',array($customer_id,ORDER_CANCEL)); 306 306 $objQuery->update('dtb_customer',$arrOrderSummary,'customer_id = ?',array($customer_id)); 307 307 }
Note: See TracChangeset
for help on using the changeset viewer.
