<?php $stdCacheName = 'task_cache_' . $id . '_' . substr(md5($gUid), 0, 6); $objRelease = match_release_class::get_instance($id, $pub_mode); $arrConfig = $objRelease->_task_config; $objRelease->get_task_obj($stdCacheName); $regionCfg = keke_glob_class::getRegionConfig(); $objRelease->pub_mode_init($stdCacheName, $init_info); $arrPubInfo = $objRelease->_std_obj->_release_info; $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)); $arrCashCove = $objRelease->_cash_cove; $arrPubInfo['province'] and $arrCities = CommonClass::getDistrictByPid($arrPubInfo['province'], 'id,upid,name'); $arrPubInfo['city'] and $arrAreas = CommonClass::getDistrictByPid($arrPubInfo['city'], 'id,upid,name'); switch ($step) { case 'step1': $intTaskCove = intval($task_cash_cove); $intMinDay = time() + $arrConfig['min_day'] * 3600 * 24; $strMinDate = date('Y-m-d', $intMinDay); $intMaxDay = time() + 24 * 3600 * $arrConfig['max_day']; $strMaxDay = date('Y-m-d', $intMaxDay); $strDate = $arrPubInfo['txt_task_day'] ? $arrPubInfo['txt_task_day'] : $strMaxDay; $intCover = $arrPubInfo['task_cash_cove'] ? $arrPubInfo['task_cash_cove'] : 0; if (isset($formhash) && kekezu::submitcheck($formhash)) { $strEndDate = strval(trim($txt_task_day)); $intTime = date('H', time()) * 3600 + date('i', time()) * 60 + date('s', time()); $intEndDate = strtotime($strEndDate) + $intTime; $strText = $objRelease->check_pub_priv('', 'json'); if ($strText !== true) { kekezu::show_msg($strText, NULL, NULL, NULL, 'fail'); }
<?php if (intval($id)) { $arrIndustrys = CommonClass::getIndustryByPid($id, 'indus_id,indus_pid,indus_name'); foreach ($arrIndustrys as $k => $v) { $html .= '<option value=' . $v['indus_id'] . '>' . $v['indus_name'] . '</option>'; } echo $html; } die;
if ($orderId) { $arrOrderInfo = db_factory::get_one(sprintf("select * from %switkey_order where order_id=%d", TABLEPRE, $orderId)); if (!$arrOrderInfo) { kekezu::show_msg('订单不存在', 'index.php?do=goodslist', 3, '订单不存在', 'warning'); } $arrServiceOrderInfo = db_factory::get_one(sprintf("select * from %switkey_service_order where order_id=%d", TABLEPRE, $orderId)); } $reportUrl = $strUrl . '&orderId=' . $orderId . '&action=rights&objId=' . $orderId . '&objType=order&type=1&toUid='; if ($id == $gUid) { $reqPage = 'seller'; $arrBuyerInfo = kekezu::get_user_info($arrOrderInfo['order_uid']); $arrOrderInfo['seller_uid'] != $id and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning'); $arrBuyerInfo['comefrom'] = keke_shop_class::getUserAddress($arrOrderInfo['order_uid'], 2, 1, 1, 0); $arrBuyerInfo['userlevel'] = unserialize($arrBuyerInfo['buyer_level']); $arrAid = keke_user_mark_class::get_user_aid($arrBuyerInfo['uid'], 1, null, '1'); $arrServiceOrderInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceOrderInfo['indus_pid'], 'indus_id,indus_pid,indus_name'); $reportUrl .= $arrBuyerInfo['uid']; } else { $reqPage = 'buyer'; $arrSellerInfo = kekezu::get_user_info($id); !$arrSellerInfo and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning'); $arrOrderInfo['order_uid'] && $arrOrderInfo['order_uid'] != $uid and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning'); $arrSellerInfo['comefrom'] = keke_shop_class::getUserAddress($id, 2, 1, 1, 0); $arrSellerInfo['userlevel'] = unserialize($arrSellerInfo['seller_level']); $arrSellerInfo['nearlyIncome'] = CommonClass::getNearlyIncomeForDays($arrSellerInfo['uid']); $arrAid = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 2, null, '1'); $reportUrl .= $arrSellerInfo['uid']; } switch ($arrOrderInfo['order_status']) { case 'seller_confirm': $step = 'step2';
$time = time() - $service_arr['on_time']; keke_payitem_class::update_service_payitem_time($service_arr['payitem_time'], $time, $service_id); goods_shop_class::set_service_status($service_id, 2); } keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>已通过管理员审核,目前已生效!', $arrServiceInfo['uid'], $arrServiceInfo['username']); } if ($acc == 'snopass') { CommonClass::cancleEdit($service_id, 6); keke_shop_release_class::updateEditStatusBySid($service_id, 4); keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>未通过管理员的审核,如有疑问请联系网站管理员!', $arrServiceInfo['uid'], $arrServiceInfo['username']); } kekezu::echojson('操作成功', 1); } else { $editInfo = CommonClass::getEditLogInfoByLogTypeAndObjId($service_id, 6); $arrTopIndustrys = $kekezu->_indus_goods_arr; $arrIndustrys = CommonClass::getIndustryByPid($editInfo['log_content_data']['indus_pid']); $arrOldImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_pic']); $arrImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['pic']); $arrOldFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_file_path']); $arrFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['file_path']); require keke_tpl_class::template('shop/goods/admin/tpl/goods_updateinfo'); die; } break; case 'off_shelf': if ($is_submit == "1") { $serviceInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_service where service_id=" . intval($service_id)); $objMsgM = new Keke_witkey_msg_class(); $objMsgM->setTo_uid($serviceInfo['uid']); $objMsgM->setTo_username($serviceInfo['username']); $objMsgM->setTitle("商品下架");