Changeset 16873
- Timestamp:
- 2007/12/03 03:00:51 (14 years ago)
- Location:
- branches/feature-module-update/data/class/pages/upgrade
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/upgrade/LC_Page_Upgrade_Base.php
r16853 r16873 34 34 */ 35 35 function autoUpdateEnable($product_id) { 36 $where = ' product_id = ?';36 $where = 'module_id = ?'; 37 37 $objQuery = new SC_Query(); 38 38 $arrRet = $objQuery->select('auto_update_flg', 'dtb_module', $where, array($product_id)); -
branches/feature-module-update/data/class/pages/upgrade/LC_Page_Upgrade_Download.php
r16872 r16873 80 80 } 81 81 82 $objLog->log('* auto update check start'); 82 83 if ($mode == 'auto_update' 83 84 && $this->autoUpdateEnable($this->objForm->getValue('product_id')) !== true) { 84 85 $objJson->setError(OSTORE_E_C_AUTOUP_DISABLE); 85 86 $objJson->display(); 86 $objLog->error(OSTORE_E_C_ INVALID_PARAM, $_POST);87 $objLog->error(OSTORE_E_C_AUTOUP_DISABLE, $_POST); 87 88 return; 88 89 } … … 111 112 'product_id' => $this->objForm->getValue('product_id') 112 113 ); 113 $objReq = $this->request( 'download', $arrPostData);114 $objReq = $this->request($mode, $arrPostData); 114 115 115 116 // リクエストチェック … … 201 202 // 配信サーバへ通知 202 203 $objLog->log("* notify to lockon server start"); 203 $objReq = $this->notifyDownload($ objReq->getResponseCookies());204 $objReq = $this->notifyDownload($mode, $objReq->getResponseCookies()); 204 205 205 206 $objLog->log('* dl commit result:' . serialize($objReq)); … … 272 273 * @retrun 273 274 */ 274 function notifyDownload($arrCookies) { 275 $objReq = $this->request('download_commit', array(), $arrCookies); 275 function notifyDownload($mode, $arrCookies) { 276 $arrPOSTParams = array( 277 'eccube_url' => SITE_URL 278 ); 279 $objReq = $this->request($mode . '_commit', $arrPOSTParams, $arrCookies); 276 280 return $objReq; 277 281 }
Note: See TracChangeset
for help on using the changeset viewer.