Changeset 21444 for branches/version-2_12-dev/data/class/SC_Customer.php
- Timestamp:
- 2012/02/06 21:27:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Customer.php
r21442 r21444 33 33 } 34 34 35 function getCustomerDataFromEmailPass( $pass, $email, $mobile = false ) {35 function getCustomerDataFromEmailPass( $pass, $email, $mobile = false) { 36 36 // 小文字に変換 37 37 $email = strtolower($email); … … 205 205 $_SESSION['customer'] = $this->customer_data; 206 206 // セッション情報の保存 207 GC_Utils_Ex::gfPrintLog("access : user=".$this->customer_data['customer_id'] ."\t"."ip=". $this->getRemoteHost(), CUSTOMER_LOG_REALFILE );207 GC_Utils_Ex::gfPrintLog("access : user=".$this->customer_data['customer_id'] ."\t"."ip=". $this->getRemoteHost(), CUSTOMER_LOG_REALFILE); 208 208 } 209 209 … … 217 217 $objSiteSess->unsetUniqId(); 218 218 // ログに記録する 219 GC_Utils_Ex::gfPrintLog("logout : user=".$this->customer_data['customer_id'] ."\t"."ip=". $this->getRemoteHost(), CUSTOMER_LOG_REALFILE );219 GC_Utils_Ex::gfPrintLog("logout : user=".$this->customer_data['customer_id'] ."\t"."ip=". $this->getRemoteHost(), CUSTOMER_LOG_REALFILE); 220 220 } 221 221 … … 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.
