Changeset 15883
- Timestamp:
- 2007/09/21 22:14:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-paygent/data/downloads/module/mdl_zero/zero_recv.php
r15881 r15883 2 2 3 3 require_once('../require.php'); 4 require_once(MODULE_PATH . 'mdl_zero/mdl_zero.inc'); 4 5 5 6 //¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹ … … 35 36 if(!empty($_GET["clientip"])){ 36 37 $objQuery->begin(); 37 $order_id = lfDoComplete($objQuery, $arrResult );38 $order_id = lfDoComplete($objQuery, $arrResult, $log_path); 38 39 $objQuery->commit(); 39 40 } … … 60 61 //--------------------------------------------------------------------------------------------------------------------------------- 61 62 // ´°Î»½èÍý 62 function lfDoComplete($objQuery, $arrResult ) {63 function lfDoComplete($objQuery, $arrResult, $log_path) { 63 64 global $objCartSess; 64 65 global $objSiteSess; … … 67 68 global $arrInfo; 68 69 69 gfprintlog($objCustomer->isLoginSuccess(), DATA_PATH . "logs/zero.log");70 gfprintlog($objCustomer->isLoginSuccess(), $log_path); 70 71 71 72 // sendid ¤ÎÃͤò¶èÀÚ¤ë … … 75 76 $money = $arrResult["money"]; // payment_total 76 77 77 $arrCrilentIP = $objQuery->select("memo02, memo04", "dtb_payment", " payment_id = ? and del_flg = 0", array($arrSendid[1]));78 $arrCrilentIP = $objQuery->select("memo02, memo04", "dtb_payment", "module_id = ? and del_flg = 0", array(MDL_ZERO_ID)); 78 79 79 80 // ²ÃÌÁŹ¥³¡¼¥É¤¬°ã¤¦¾ì¹ç¤Ë¤Ï¥¨¥é¡¼ 80 81 if(!(count($arrResult) > 0)){ 81 gfPrintLog("·èºÑ¥µ¡¼¥Ð¤«¤é¥Ç¡¼¥¿¤òÀµ¤·¤¯¼õ¤±¼è¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£" );82 gfPrintLog("·èºÑ¥µ¡¼¥Ð¤«¤é¥Ç¡¼¥¿¤òÀµ¤·¤¯¼õ¤±¼è¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£", $log_path); 82 83 return; 83 84 } … … 88 89 89 90 if(!in_array($arrResult["clientip"], $arrCrilentIP)) { 90 gfPrintLog("²ÃÌÁŹ¥³¡¼¥É¤¬°ã¤¤¤Þ¤¹¡£" );91 gfPrintLog("²ÃÌÁŹ¥³¡¼¥É¤¬°ã¤¤¤Þ¤¹¡£", $log_path); 91 92 return; 92 93 } … … 97 98 // °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤«¤é¥Ç¡¼¥¿¤¬¼èÆÀ¤Ç¤¤Ê¤±¤ì¤Ð¡¢¥¨¥é¡¼ 98 99 if(count($arrData) <= 0) { 99 gfPrintLog("¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë»ØÄꤷ¤¿ID¤Î¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤»¤ó¡£" );100 gfPrintLog("¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë»ØÄꤷ¤¿ID¤Î¥Ç¡¼¥¿¤¬¤¢¤ê¤Þ¤»¤ó¡£", $log_path); 100 101 return; 101 102 } … … 103 104 // ·èºÑ´°Î»ºÑ¤ß¤Ç¤¢¤ì¤Ð¥¨¥é¡¼ 104 105 if($arrData["del_flg"] == 1) { 105 gfPrintLog("»ØÄꤷ¤¿ID¤Î¥Ç¡¼¥¿¤Ï·èºÑ´°Î»ºÑ¤ß¤Ç¤¹¡£" );106 gfPrintLog("»ØÄꤷ¤¿ID¤Î¥Ç¡¼¥¿¤Ï·èºÑ´°Î»ºÑ¤ß¤Ç¤¹¡£", $log_path); 106 107 return; 107 108 } … … 109 110 // °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤Î¤ª»Ùʧ¤¤¹ç·×¤È¡¢¥¼¥í¤«¤éÊ֤äƤ¤¿¶â³Û¤È¤¬°ã¤¦¾ì¹ç¤Ï¥¨¥é¡¼ 110 111 if($arrData["payment_total"] != $money) { 111 gfPrintLog("¤ª»Ùʧ¤¤¶â³Û¤¬°ìÃפ·¤Þ¤»¤ó¡£" );112 gfPrintLog("¤ª»Ùʧ¤¤¶â³Û¤¬°ìÃפ·¤Þ¤»¤ó¡£", $log_path); 112 113 return; 113 114 }
Note: See TracChangeset
for help on using the changeset viewer.