Changeset 358


Ignore:
Timestamp:
2007/02/23 10:14:34 (17 years ago)
Author:
inoue
Message:

ルミーズ決済(細かい調整必要)

Location:
branches/dev/data/downloads/module/mdl_remise
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/downloads/module/mdl_remise/mdl_remise.inc

    r348 r358  
    2828// ¥ë¥ß¡¼¥º¤Ø¤Î¥Ç¡¼¥¿Á÷¿®ÍÑ¥¨¥ó¥³¡¼¥É 
    2929define("REMISE_SEND_ENCODE", 'SJIS-win'); 
     30 
     31// ¥³¥ó¥Ó¥Ë¼ýǼ 
     32define("REMISE_CONVENIENCE_CHARGE", 1); 
    3033 
    3134// ¥¨¥é¡¼ÆâÍÆ 
  • branches/dev/data/downloads/module/mdl_remise/mdl_remise.php

    r353 r358  
    271271                ,"del_flg" => "0" 
    272272                ,"charge_flg" => "1" 
    273                 ,"upper_rule_max" => REMISE_CREDIT_UPPER 
     273                ,"upper_rule_max" => REMISE_CONVENIENCE_UPPER 
    274274            ); 
    275275        } 
     
    332332    gfPrintLog("remise conveni result : ".$_POST["JOB_ID"] , $log_path); 
    333333     
    334     // JOB_ID ¤ò»ØÄꤵ¤ì¤Æ¤¤¤Æ³î¤Ä¡¢Æþ¶âºÑ¤ß¤Î¾ì¹ç 
    335     if($_POST["JOB_ID"] != "" and $_POST["REC_FLG"] == 1 and $_POST["S_TORIHIKI_NO"] != ""){ 
     334    // ɬÍפʥǡ¼¥¿¤¬Á÷¿®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç 
     335    if(isset($_POST["JOB_ID"]) && isset($_POST["REC_FLG"]) &&  
     336        isset($_POST["S_TORIHIKI_NO"]) && isset($_POST["TOTAL"])){ 
    336337         
    337         // POST¤ÎÆâÍƤòÁ´¤Æ¥í¥°Êݸ 
    338         gfPrintLog("remise conveni charge start----------", $log_path); 
    339         foreach($_POST as $key => $val){ 
    340             gfPrintLog( "\t" . $key . " => " . $val, $log_path); 
    341         } 
    342         gfPrintLog("remise conveni charge end  ----------", $log_path); 
    343          
    344         // ¥¹¥Æ¡¼¥¿¥¹¤òÆþ¶âºÑ¤ß¤ËÊѹ¹¤¹¤ë 
    345         $sql = "UPDATE dtb_order SET status = 6, update_date = now() WHERE order_id = ? AND memo04 = ? "; 
    346         $objQuery->query($sql, array($_POST["S_TORIHIKI_NO"], $_POST["JOB_ID"])); 
    347          
    348         //±þÅú·ë²Ì¤òɽ¼¨ 
    349         print("<SDBKDATA>STATUS=800</SDBKDATA>"); 
    350         exit; 
     338        // ¼ýǼºÑ¤ß¤Î¾ì¹ç 
     339        if ($_POST["REC_FLG"] == REMISE_CONVENIENCE_CHARGE) { 
     340            // POST¤ÎÆâÍƤòÁ´¤Æ¥í¥°Êݸ 
     341            gfPrintLog("remise conveni charge start----------", $log_path); 
     342            foreach($_POST as $key => $val){ 
     343                gfPrintLog( "\t" . $key . " => " . $val, $log_path); 
     344            } 
     345            gfPrintLog("remise conveni charge end  ----------", $log_path); 
     346             
     347            // JOB_ID¤ÈÀÁµáÈֹ档Æþ¶â¶â³Û¤¬°ìÃפ¹¤ë¾ì¹ç¤Î¤ß¡¢¥¹¥Æ¡¼¥¿¥¹¤òÆþ¶âºÑ¤ß¤ËÊѹ¹¤¹¤ë 
     348            $sql = "UPDATE dtb_order SET status = 6, update_date = now() ". 
     349                "WHERE order_id = ? AND memo04 = ? AND payment_total = ? "; 
     350            $objQuery->query($sql, array($_POST["S_TORIHIKI_NO"], $_POST["JOB_ID"], $_POST["TOTAL"])); 
     351             
     352            //±þÅú·ë²Ì¤òɽ¼¨ 
     353            print("<SDBKDATA>STATUS=800</SDBKDATA>"); 
     354            exit; 
     355        } else { 
     356            print("ERROR"); 
     357            exit; 
     358        } 
    351359    } 
    352360} 
Note: See TracChangeset for help on using the changeset viewer.