Changeset 15198 for branches/feature-module-paygent
- Timestamp:
- 2007/08/04 21:45:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-paygent/data/downloads/module/mdl_paygent/mdl_paygent.inc
r15197 r15198 531 531 $arrOrder = $objQuery->select("order_id", "dtb_order", $where, array(MDL_PAYGENT_ID, ORDER_PAY_WAIT)); 532 532 533 sfPrintR($arrRet);534 535 533 // ¶¦Ḁ̈ǡ¼¥¿¤Î¼èÆÀ 536 534 $arrSend = sfGetPaygentShare(PAYGENT_REF, 0, $arrPaymentDB[0]); 537 535 538 536 for($i = 0; $i < count($arrOrder); $i++) { 539 $arrRet = sfCheckPaymentStatus($objPaygent, $arrOrder[$i]['order_id'], $arrSend); 540 } 541 542 sfPrintR($arrRet); 543 537 $arrRet = sfUpdatePaymentStatus($objPaygent, $arrOrder[$i]['order_id'], $arrSend); 538 } 539 544 540 return $arrRet; 545 541 } … … 553 549 * Ìá¤êÃÍ ¡§¼èÆÀ·ë²Ì 554 550 **************************************************************************************************************/ 555 function sfCheckPaymentStatus($objPaygent, $order_id, $arrSend) { 551 function sfUpdatePaymentStatus($objPaygent, $order_id, $arrSend) { 552 $objQuery = new SC_Query(); 553 556 554 // ¥Þ¡¼¥Á¥ã¥ó¥È¼è°úID¤ÎÆþ¤ìÂؤ¨ 557 555 $arrSend['trading_id'] = $order_id; 558 559 sfPrintR($arrSend);560 556 561 557 // ÅÅʸ¤ÎÁ÷ÉÕ … … 576 572 $arrRes[0][$key] = mb_convert_encoding($val, CHAR_CODE, "Shift-JIS"); 577 573 } 578 574 575 // »Ùʧ¥¹¥Æ¡¼¥¿¥¹¤Î¹¹¿· 576 /* 577 * 10:¿½¹þºÑ 578 * 12:»Ùʧ´ü¸ÂÀÚ¤ì 579 * 15:¿½¹þÃæÃÇ 580 * 40:¾Ã¹þºÑ 581 * 43:®Êó¸¡Ã뼄 582 * 61:®Êó¼è¾ÃºÑ 583 * etc 584 */ 585 if($arrRes[0][payment_status] == '40') { 586 $arrVal['status'] = ORDER_PRE_END; 587 } 588 589 $arrVal['memo07'] = $arrRes[0][payment_status]; 590 $objQuery->update("dtb_order", $arrVal, "order_id = ?", array($order_id)); 591 579 592 return $arrRes[0]; 580 593 }
Note: See TracChangeset
for help on using the changeset viewer.