$array = explode(',', $arrServiceInfo['pic']); $newArr = CommonClass::returnNewArr($arrFileInfo['save_name'], $array); $_POST['file_ids'] = implode(",", $newArr); updateFilepath($arrServiceInfo['service_id'], $_POST['file_ids'], 'pic'); kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'save_name' => $arrFileInfo['save_name'])); die; } } if ($action == 'delete_goodsfile') { $fileid = intval($fileid); $strSql = sprintf("select file_id,file_name,save_name from %switkey_file where file_id in(%s)", TABLEPRE, $fileid); $arrFileInfo = db_factory::get_one($strSql); $resText = CommonClass::delFileByFileId($fileid); if ($resText) { $array = explode(',', $arrServiceInfo['file_path']); $newArr = CommonClass::returnNewArr($arrFileInfo['save_name'], $array); $_POST['file_path_2'] = implode(",", $newArr); updateFilepath($arrServiceInfo['service_id'], $_POST['file_path_2'], 'file'); kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'save_name' => $arrFileInfo['save_name'])); die; } } if (isset($formhash) && kekezu::submitcheck($formhash)) { if ($arrServiceInfo['uid'] != $gUid) { exit('禁止未授权访问'); } $arrGoodsConfig = unserialize($kekezu->_model_list[6]['config']); $goodsprice = floatval($goodsprice); $floatMinCash = floatval($arrGoodsConfig['min_cash']); if ($floatMinCash && $goodsprice < $floatMinCash) { $tips['errors']['goodsprice'] = '最小金额不能少于' . $floatMinCash . '元';
kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST); $objRelease->save_task_obj($_POST, $stdCacheName); kekezu::show_msg($tips, $strUrl . '&step=step3', NULL, NULL, 'ok'); } else { !$_SESSION[$stdCacheName] and kekezu::show_msg($_lang['friendly_notice'], "index.php?do=pubtask&id={$id}", 2, "任务已提交,不可再返回修改!", "warning"); $objRelease->check_access($step, $id, $arrPubInfo); $strExtTypes = kekezu::get_ext_type(); } $arrFileLists = CommonClass::getFileArray('|', $arrPubInfo['file_ids']); if ($action == 'delete_file') { $resText = CommonClass::delFileByFileId($fileid); if ($resText) { $array = explode('|', $arrPubInfo['file_ids']); $newArr = CommonClass::returnNewArr($fileid, $array); $_POST['file_ids'] = implode("|", $newArr); $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST); $objRelease->save_task_obj($_POST, $stdCacheName); kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'a' => $arrPubInfo)); die; } } break; case 'step3': $intFileCount = 0; if ($arrPubInfo['file_ids']) { $intFileCount = count(explode('|', $arrPubInfo['file_ids'])); } if (isset($formhash) && kekezu::submitcheck($formhash)) { $arrPayitems = array('urgent' => intval($txt_urgent), 'tasktop' => intval($txt_tasktop) && intval($text_tasktop) ? intval($text_tasktop) : 0, 'workhide' => intval($txt_workhide), 'seohide' => intval($txt_seohide));