Changeset 16881


Ignore:
Timestamp:
2007/12/03 23:43:46 (16 years ago)
Author:
naka
Message:

・パラメータチェックエラーを出力

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/upgrade/LC_Page_Upgrade_Download.php

    r16880 r16881  
    7373        $this->initParam(); 
    7474        $objLog->log('* post param check start'); 
    75         if ($this->objForm->checkError()) { 
     75        $arrErr = $this->objForm->checkError(); 
     76        if ($arrErr) { 
    7677            $objJson->setError(OSTORE_E_C_INVALID_PARAM); 
    7778            $objJson->display(); 
    7879            $objLog->error(OSTORE_E_C_INVALID_PARAM, $_POST); 
     80            $objLog->log('* post param check error ' . print_r($arrErr, true)); 
    7981            return; 
    8082        } 
     
    106108        // リクエストを開始 
    107109        $objLog->log('* http request start'); 
    108         $arrPostData = array( 
    109             'eccube_url' => SITE_URL, 
    110             'public_key' => sha1($public_key . $sha1_key), 
    111             'sha1_key'   => $sha1_key, 
    112             'product_id' => $this->objForm->getValue('product_id') 
    113         ); 
     110         
     111        switch($mode) { 
     112        case 'patch_download': 
     113            $arrPostData = array( 
     114                'eccube_url' => SITE_URL, 
     115                'public_key' => sha1($public_key . $sha1_key), 
     116                'sha1_key'   => $sha1_key, 
     117                'patch_code' => 'latest' 
     118            ); 
     119            break; 
     120        default: 
     121            $arrPostData = array( 
     122                'eccube_url' => SITE_URL, 
     123                'public_key' => sha1($public_key . $sha1_key), 
     124                'sha1_key'   => $sha1_key, 
     125                'product_id' => $this->objForm->getValue('product_id') 
     126            ); 
     127            break; 
     128        } 
     129         
    114130        $objReq = $this->request($mode, $arrPostData); 
    115131 
Note: See TracChangeset for help on using the changeset viewer.