Changeset 15508 for branches/feature-module-zeus
- Timestamp:
- 2007/08/30 19:04:48 (17 years ago)
- Location:
- branches/feature-module-zeus/data/downloads/module/mdl_zeus
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-zeus/data/downloads/module/mdl_zeus/mdl_zeus.inc
r15489 r15508 61 61 * Ìá¤êÃÍ ¡§¼èÆÀ·ë²Ì 62 62 **************************************************************************************************************/ 63 function sfPostPaymentData($arrData, $arrInput ){63 function sfPostPaymentData($arrData, $arrInput, $quick_chage = false){ 64 64 $arrPaymentDB = sfGetPaymentDB(MDL_ZEUS_ID); 65 65 $telno = $arrData['order_tel01'].$arrData['order_tel02'].$arrData['order_tel03']; 66 66 $cardnumber = $arrInput['card_no01'].$arrInput['card_no02'].$arrInput['card_no03'].$arrInput['card_no04']; 67 $arrPost = array( 68 'clientip' => $arrPaymentDB['clientip'], 69 'cardnumber' => $cardnumber, 70 'expyy' => $arrInput['card_year'], 71 'expmm' => $arrInput['card_month'], 72 'telno' => $telno, 73 'email' => $arrData['order_email'], 74 'sendid' => $arrData['order_id'], 75 'username' => $arrInput['card_name01'].$arrInput['card_name02'], 76 'money' => $arrData['total'], 77 'sendpoint' => 'eccube', 78 'send' => 'mall', 79 'pubsec' => '', 80 'div' => $arrInput['payment_class'] 81 ); 67 68 if(!$quick_chage) { 69 $arrPost = array( 70 'clientip' => $arrPaymentDB['clientip'], 71 'cardnumber' => $cardnumber, 72 'expyy' => $arrInput['card_year'], 73 'expmm' => $arrInput['card_month'], 74 'telno' => $telno, 75 'email' => $arrData['order_email'], 76 'sendid' => $arrData['order_id'], 77 'username' => $arrInput['card_name01'].$arrInput['card_name02'], 78 'money' => $arrData['total'], 79 'sendpoint' => 'eccube', 80 'send' => 'mall', 81 'pubsec' => '', 82 'div' => $arrInput['payment_class'] 83 ); 84 } else { 85 // ¥¯¥¤¥Ã¥¯¥Á¥ã¡¼¥¸¤òÍøÍѤ¹¤ë¾ì¹ç 86 $objQuery = new SC_Query(); 87 $objQuery->setlimit(1); 88 $objQuery->setorder("create_date DESC"); 89 $arrRet = $objQuery->select("order_id, order_tel01, order_tel02, order_tel03", "dtb_order", "memo01 = ? AND customer_id = ?", array(MDL_ZEUS_ID, $arrData['customer_id'])); 90 sfPrintR($arrRet); 91 } 82 92 83 93 $req = new HTTP_Request(SECURE_LINK_URL); … … 96 106 $arrVal["memo01"] = MDL_ZEUS_ID; // ¥â¥¸¥å¡¼¥ëID 97 107 $arrVal["memo03"] = $response; // ½èÍý·ë²Ì 98 // QuickChargeÍѤÎÅÅʸ¤òÊݸ¡Ê2²óÌܰʹßÆþÎϾÊάÍÑ¡Ë99 /*100 clientip ¡Ü telno ¡Ü sendid ¤Ç¥«¡¼¥É¾ðÊó¤ò¸¡º÷101 */102 $arrVal["memo04"] = $arrPost['clientip'].$arrPost['telno'].$arrPost['sendid'];103 108 // ¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë¹¹¿· 104 109 sfRegistTempOrder($arrData['order_temp_id'], $arrVal); -
branches/feature-module-zeus/data/downloads/module/mdl_zeus/zeus_credit.php
r15506 r15508 86 86 break; 87 87 case 'quick_charge': 88 $objQuery = new SC_Query(); 89 90 $objQuery->setlimit(1); 91 $objQuery->setorder("create_date DESC"); 92 $arrRet = $objQuery->select("memo04", "dtb_order", "memo01 = ? AND customer_id = ?", array(MDL_ZEUS_ID, $arrData['customer_id'])); 93 sfPrintR($arrRet); 88 // ¥¯¥ì¥¸¥Ã¥ÈÅÅʸÁ÷¿® 89 $ret = sfPostPaymentData($arrData, $arrInput, true); 90 // À®¸ù 91 if($ret) { 92 // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµÏ¿¤·¤Æ¤ª¤¯ 93 $objSiteSess->setRegistFlag(); 94 if (GC_MobileUserAgent::isMobile()) { 95 header("Location: " . gfAddSessionId(URL_SHOP_COMPLETE)); 96 } else { 97 header("Location: " . URL_SHOP_COMPLETE); 98 } 99 } else { 100 // ¼ºÇÔ 101 $objPage->tpl_error = "ǧ¾Ú¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£¤ª¼ê¿ô¤Ç¤¹¤¬ÆþÎÏÆâÍƤò¤´³Îǧ¤¯¤À¤µ¤¤¡£"; 102 } 94 103 break; 95 104 } -
branches/feature-module-zeus/data/downloads/module/mdl_zeus/zeus_credit.tpl
r15507 r15508 200 200 </tr> 201 201 </table> 202 </td> 202 </td> 203 203 </tr> 204 204 <tr>
Note: See TracChangeset
for help on using the changeset viewer.