Exemplo n.º 1
0
        $arrCustomInfo[$k]['extdata'] = $arrService[$v['f_code']]['content'];
    }
    if ($arrServiceInfo['uid'] != $gUid) {
        exit('禁止未授权访问');
    }
}
$arrServiceInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceInfo['indus_pid'], 'indus_id,indus_pid,indus_name');
$intModelId = 6;
if ($arrServiceInfo['model_id']) {
    $intModelId = $arrServiceInfo['model_id'];
}
$strServiceName = '作品';
if ($intModelId == '7') {
    $strServiceName = '服务';
}
$objRelease = goods_release_class::get_instance($intModelId);
$arrPriceUnit = $objRelease->get_price_unit();
$arrServiceUnit = $objRelease->get_service_unit();
$arrImageLists = CommonClass::getFileArrayByPath(',', $arrServiceInfo['pic']);
$arrFileLists = CommonClass::getFileArrayByPath(',', $arrServiceInfo['file_path']);
if ($action == 'delete_image') {
    $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['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']));
Exemplo n.º 2
0
<?php

defined('IN_KEKE') or exit('Access Denied');
$stdCacheName = 'service_cache_' . $id . '_' . substr(md5($gUid), 0, 6);
$objRelease = goods_release_class::get_instance($id);
$objRelease->get_service_obj($stdCacheName);
$arrPubInfo = $objRelease->_std_obj->_release_info;
$arrConfig = $objRelease->_service_config;
$arrPubInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrPubInfo['indus_pid'], 'indus_id,indus_pid,indus_name');
$userInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_space where uid=" . intval($gUid));
$province = $userInfo['province'];
$city = $userInfo['city'];
$area = $userInfo['area'];
if ($arrPubInfo['onecity']) {
    $province = $arrPubInfo['onecity'];
}
if ($arrPubInfo['twocity']) {
    $city = $arrPubInfo['twocity'];
}
if ($arrPubInfo['threecity']) {
    $area = $arrPubInfo['threecity'];
}
switch ($step) {
    case 'step1':
        $regionCfg = keke_glob_class::getRegionConfig();
        $objRelease->check_access($step, $id, $arrPubInfo);
        $strExtTypes = '*.jpg;*.jpeg;*.gif;*.png;*.bmp';
        $strExtTypes2 = kekezu::get_ext_type();
        $arrPriceUnit = $objRelease->get_price_unit();
        $floatPrice = floatval($txt_price);
        if (isset($formhash) && kekezu::submitcheck($formhash)) {