Changeset 6647 for temp/trunk/html/shopping/complete.php
- Timestamp:
- 2006/10/25 12:21:47 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/shopping/complete.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/shopping/complete.php
r6646 r6647 141 141 lfSetNewAddr($uniqid, $objCustomer->getValue('customer_id')); 142 142 // ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç 143 lfSetCustomerPurchase($objCustomer->getValue('customer_id'), $arrData );143 lfSetCustomerPurchase($objCustomer->getValue('customer_id'), $arrData, $objQuery); 144 144 } else { 145 145 //¹ØÆþ»þ¶¯À©²ñ°÷ÅÐÏ¿ … … 150 150 if($arrData['member_check'] == '1') { 151 151 // ²¾²ñ°÷ÅÐÏ¿ 152 $customer_id = lfRegistPreCustomer($arrData, $arrInfo );152 $customer_id = lfRegistPreCustomer($arrData, $arrInfo, $objQuery); 153 153 // ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç 154 154 lfSetCustomerPurchase($customer_id, $arrData); … … 160 160 $customer_id = lfRegistPreCustomer($arrData, $arrInfo); 161 161 // ¹ØÆþ½¸·×¤ò¸ÜµÒ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç 162 lfSetCustomerPurchase($customer_id, $arrData );162 lfSetCustomerPurchase($customer_id, $arrData, $objQuery); 163 163 break; 164 164 } … … 434 434 435 435 /* ¹ØÆþ¾ðÊó¤ò²ñ°÷¥Æ¡¼¥Ö¥ë¤ËÅÐÏ¿¤¹¤ë */ 436 function lfSetCustomerPurchase($customer_id, $arrData) { 437 $objQuery = new SC_Query(); 436 function lfSetCustomerPurchase($customer_id, $arrData, $objQuery) { 438 437 $col = "first_buy_date, last_buy_date, buy_times, buy_total, point"; 439 438 $where = "customer_id = ?"; … … 456 455 457 456 $objQuery->update("dtb_customer", $sqlval, $where, array($customer_id)); 458 $objQuery->rollback();459 457 } 460 458
Note: See TracChangeset
for help on using the changeset viewer.
