Ignore:
Timestamp:
2010/08/12 13:26:14 (16 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 拡張子パラメータ化、オンライン決済のみ対応

Location:
branches/version-2_5-dev/data/class
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_UploadFile.php

    r18777 r18782  
    321321        $arrRet = ""; 
    322322        $cnt = 0; 
    323 GC_Utils::gfDebugLog($this->keyname); 
    324323        foreach($this->keyname as $val) { 
    325324            if(isset($this->temp_file[$cnt]) && $this->temp_file[$cnt] != "") { 
    … …  
    330329            $cnt++; 
    331330        } 
    332 GC_Utils::gfPrintLog("1111111111111111111111"); 
    333 GC_Utils::gfDebugLog($arrRet); 
    334331        return $arrRet; 
    335332    } 
    … …  
    362359    // DBで保存されたダウンロードファイル名をセットする 
    363360    function setDBDownFile($arrVal) { 
    364 GC_Utils::gfPrintLog("setDBDownFile"); 
    365 GC_Utils::gfDebugLog($arrVal); 
    366         if(isset($arrVal['down_realfilename']) && $arrVal['down_realfilename'] != "") { 
     361        if(isset($arrVal['down_realfilename']) && $arrVal['down_realfilename'] != "") { 
    367362            $this->save_file[0] = $arrVal['down_realfilename']; 
    368363        } 
  • branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php

    r18777 r18782  
    873873    /* ダウンロードファイル情報の初期化 */ 
    874874    function lfInitDownFile() { 
    875         $this->objDownFile->addFile("ダウンロード販売用ファイル", 'down_file', array('zip', 'jpg', 'mp3', 'gif', 'png'),DOWN_SIZE, true, 0, 0); 
     875        $this->objDownFile->addFile("ダウンロード販売用ファイル", 'down_file', explode(",", DOWNLOAD_EXTENSION),DOWN_SIZE, true, 0, 0); 
    876876    } 
    877877} 
  • branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r18777 r18782  
    364364 
    365365        //削除されていない支払方法を取得 
     366        $arrval = null; 
    366367        $where = "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) "; 
     368 
    367369        //ダウンロード商品の有無判定 
    368370        if($this->cartdown != 0){ 
    369             //ダウンロード商品を含む場合は、クレジット決済以外は選択できない。 
    370             $where .= "AND payment_id =  " . CREDIT_PAYMENT; 
     371            //ダウンロード商品を含む場合は、オンライン決済以外は選択できない。 
     372            $arrval = explode(",", CREDIT_PAYMENT); 
     373            $tmp_where = ""; 
     374            foreach ($arrval as $val) { 
     375                if($tmp_where == "") { 
     376                    $tmp_where.= "AND payment_id IN ( ?"; 
     377                } else { 
     378                    $tmp_where.= ",? "; 
     379                } 
     380            } 
     381            $tmp_where.= " ) "; 
     382            $where .= $tmp_where; 
    371383        } 
    372384 
    373385        // 削除されていない支払方法を取得 
    374         $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where); 
     386        $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where, $arrval); 
    375387 
    376388        // 配列初期化 
    … …  
    380392            //ダウンロード販売に対する注意追加 
    381393            if($this->cartdown != 0){ 
    382                 $data['payment_method'] = $data['payment_method'] . "  (ダウンロード商品を含む場合、クレジット決済のみ選択可能です)"; 
     394                $data['payment_method'] = $data['payment_method'] . "  (ダウンロード商品を含む場合、オンライン決済のみ選択可能です)"; 
    383395            } 
    384396            // 下限と上限が設定されている 
Note: See TracChangeset for help on using the changeset viewer.