case 'shelves': $time = time() - $service_arr['on_time']; keke_payitem_class::update_service_payitem_time($service_arr['payitem_time'], $time, $service_id); $service_info = db_factory::get_one(sprintf("select * from %switkey_service where service_id=%d", TABLEPRE, $service_id)); goods_shop_class::set_service_status($service_id, 2); kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['goods_open_success'], 'success'); break; case 'nopass': if ($is_submit == "1") { $res = goods_shop_class::set_service_status($service_id, 4); $res and PayitemClass::refundPayitem($service_id, 'goods'); $v_arr = array($_lang['username'] => $service_arr['username'], '作品标题' => $service_arr['title'], '网站名称' => $kekezu->_sys_config['website_name'], "审核原因" => $reason); keke_shop_class::notify_user($service_arr['uid'], $service_arr['username'], 'zp_auth_fail', "作品审核失败", $v_arr); kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, '作品审核不通过成功', 'success'); } else { $strUsername = sreward_task_class::getUsername($_GET['uid']); $strTittle = sreward_task_class::getSeverTitle($service_id); require keke_tpl_class::template('shop/goods/admin/tpl/goods_tp'); die; } break; case 'view_info': if ($acc) { if ($acc == 'spass') { $arrLogInfo = CommonClass::getEditLogInfoByLogId($logId); keke_shop_release_class::updateEditStatusBySid($service_id, 3); $arrLogDatas = unserialize($arrLogInfo['log_content']); if ($arrLogDatas['custom']) { $arrCustom = array('custom' => $arrLogDatas['custom']); $strCustomSql = 'select a.id,a.extdata,b.f_name,b.f_tips,b.f_fixed_len,b.f_min_len,b.f_max_len,b.f_required,b.f_code from ' . TABLEPRE . 'witkey_custom_fields_ext a LEFT JOIN ' . TABLEPRE . 'witkey_custom_fields b ON a.c_id = b.id where a.objid = ' . intval($service_id); $arrCustomExt = db_factory::query($strCustomSql);
case 'pass': case 'shelves': $time = time() - $service_arr[on_time]; keke_payitem_class::update_service_payitem_time($service_arr[payitem_time], $time, $service_id); $service_obj->service_pass($service_id); kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['service_audit_success'], 'success'); break; case 'nopass': if ($is_submit == "1") { $res = goods_shop_class::set_service_status($service_id, 4); $res and PayitemClass::refundPayitem($service_id, 'goods'); $v_arr = array('用户名' => $service_arr['username'], '作品标题' => $service_arr['title'], '网站名称' => $kekezu->_sys_config['website_name'], "审核原因" => $reason); keke_shop_class::notify_user($service_arr['uid'], $service_arr['username'], 'service_auth_fail', "服务审核失败", $v_arr); kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, '服务审核不通过成功', 'success'); } else { $strUsername = sreward_task_class::getUsername($service_arr['uid']); $strTittle = sreward_task_class::getSeverTitle($service_id); require keke_tpl_class::template('shop/goods/admin/tpl/goods_tp'); die; } break; case 'view_info': if ($acc) { if ($acc == 'spass') { $arrLogInfo = CommonClass::getEditLogInfoByLogId($logId); keke_shop_release_class::updateEditStatusBySid($service_id, 3); $arrLogDatas = unserialize($arrLogInfo['log_content']); if ($arrLogDatas['custom']) { $arrCustom = array('custom' => $arrLogDatas['custom']); $strCustomSql = 'select a.id,a.extdata,b.f_name,b.f_tips,b.f_fixed_len,b.f_min_len,b.f_max_len,b.f_required,b.f_code from ' . TABLEPRE . 'witkey_custom_fields_ext a LEFT JOIN ' . TABLEPRE . 'witkey_custom_fields b ON a.c_id = b.id where a.objid = ' . intval($service_id); $arrCustomExt = db_factory::query($strCustomSql);