Changeset 15429


Ignore:
Timestamp:
2007/08/29 19:05:42 (13 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-zeus/data/downloads/module/mdl_zeus/mdl_zeus.inc

    r15426 r15429  
    1818); 
    1919 
    20 define("ZERO_PC", 1);        // dtb_payment ¤Î¶èʬÍÑ 
    21 define("ZERO_MOBILE", 2);    // dtb_payment ¤Î¶èʬÍÑ 
    22 define("ZERO_CREDIT_ID", 1);      // dtb_payment ¤Î¶èʬÍÑ 
    23  
    2420// Á÷¿®¥Ñ¥é¥á¡¼¥¿ 
    25 define ("SEND_PARAM_CUSTOM", "yes"); 
    26 define ("SEND_PARAM_ACT", "imode"); 
    27 define ("SEND_PARAM_SEND", "jpall"); 
    28 define ("SEND_PARAM_PC_URL", "https://credit.zeroweb.ne.jp/cgi-bin/order.cgi?orders"); 
    29 define ("SEND_PARAM_MOBILE_URL", "https://credit.zeroweb.ne.jp/cgi-bin/order.cgi"); 
    30 define ("SEND_PARAM_DELIMITER", "_");                           // sendid¤Îʬ³äʸ»ú 
     21define ("SECURE_LINK_URL", "https://linkpt.cardservice.co.jp/cgi-bin/secure.cgi"); 
    3122 
    3223// ʸ»ú¿ôÀ©¸Â 
     
    3425define ("SEND_LEN", 20); 
    3526 
     27/************************************************************************************************************** 
     28 * ´Ø¿ô̾   ¡§sfGetPaymentDB 
     29 * ½èÍýÆâÍÆ ¡§É¬Íפʥǡ¼¥¿¤ò¼èÆÀ¤¹¤ë¡£ 
     30 * °ú¿ô1    ¡§ 
     31 * °ú¿ô2    ¡§ 
     32 * °ú¿ô3    ¡§ 
     33 * Ìá¤êÃÍ   ¡§¼èÆÀ·ë²Ì 
     34 **************************************************************************************************************/ 
     35function sfGetPaymentDB($module_id, $where = "", $arrWhereVal = array()){ 
     36    $objQuery = new SC_Query(); 
     37         
     38    $arrVal = array($module_id); 
     39    $arrVal = array_merge($arrVal, $arrWhereVal); 
     40     
     41    $arrRet = array(); 
     42    $sql = "SELECT  
     43                module_id,  
     44                memo01 as merchant_id,  
     45                memo02 as connect_id,  
     46                memo03 as payment, 
     47                memo04 as connect_password,  
     48                memo05 as other_param 
     49            FROM dtb_payment WHERE module_id = ? " . $where; 
     50    $arrRet = $objQuery->getall($sql, $arrVal); 
     51 
     52    return $arrRet; 
     53} 
    3654 
    3755/************************************************************************************************************** 
     
    6179    sfPrintR($arrPost); 
    6280     
    63     $req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/secure.cgi'); 
     81    $req = new HTTP_Request(SECURE_LINK_URL); 
    6482    $req->setMethod(HTTP_REQUEST_METHOD_POST); 
    6583    $req->addPostDataArray($arrPost); 
Note: See TracChangeset for help on using the changeset viewer.