Пример #1
0
 function run()
 {
     global $_K, $kekezu;
     $shop_time = new goods_time_class();
     $shop_time->validtaskstatus();
     $this->validautoMail();
     $model_list = $model_list ? $model_list : kekezu::get_table_data('*', 'witkey_model', 'model_status=1', '', null, '', 'model_id');
     $this->task_finish_auto_mark();
     foreach ($model_list as $model_info) {
         $model_dir = $model_info['model_dir'];
         if (file_exists(S_ROOT . "./task/{$model_dir}")) {
             $m = strtolower($model_dir) . "_time_class";
         }
         if (class_exists($m)) {
             $time_obj = new $m();
             $time_obj->validtaskstatus();
         }
     }
     keke_task_class::hp_timeout(7);
 }
Пример #2
0
<?php

kekezu::check_login();
$id = intval($id);
$gUid = intval($gUid);
$orderId = intval($orderId);
$strUrl = "index.php?do=gy&id=" . $id;
$step = strval(trim($step));
if (!$step) {
    $step = 'step1';
}
$objServiceTime = new service_time_class();
$objServiceTime->validtaskstatus();
unset($objServiceTime);
$objGoodsTime = new goods_time_class();
$objGoodsTime->validtaskstatus();
unset($objGoodsTime);
$arrDisplaypro = CommonClass::getDistrictByPid('0', 'id,upid,name');
$arrTopIndustrys = $kekezu->_indus_p_arr;
$strExtTypes = kekezu::get_ext_type();
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']);
Пример #3
0
    die;
}
if ($type == "getno") {
    $sql1 = "DELETE FROM " . TABLEPRE . "witkey_favorite WHERE obj_id =" . $service_id . ' and uid=' . $uid;
    $sql1 .= " and obj_type='" . $do . "'";
    db_factory::query($sql1);
    die;
}
$intFollow = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and fuid = %d', TABLEPRE . 'witkey_free_follow', intval($gUid), intval($arrServiceInfo['uid'])));
if ($gUid && $gUid !== $arrServiceInfo['uid']) {
    $myOrderInfo = db_factory::get_one("select a.order_status from " . TABLEPRE . "witkey_order a left join " . TABLEPRE . "witkey_order_detail b on a.order_id=b.order_id where b.obj_type='service' and b.obj_id={$id} and a.order_uid={$gUid}");
}
$page and $intPage = intval($page);
intval($intPage) and $p['page'] = intval($intPage) or $p['page'] = '1';
intval($intPagesize) and $p['page_size'] = intval($intPagesize) or $p['page_size'] = 10;
$objTime = new goods_time_class();
$objTime->validtaskstatus();
switch ($view) {
    case "content":
        break;
    case "sale":
        $arrStatus = goods_shop_class::get_order_status();
        $p['url'] = $strUrl . "&view=sale&intPagesize=" . $p['page_size'] . "&intPage=" . $p['page'];
        $p['anchor'] = '#pageT';
        $w = array();
        $w['a.order_status'] = "confirm";
        $t == 'today' and $ext_condit = 'day(date(from_unixtime(a.order_time)))=day(curdate())';
        $arrSaleArr = keke_shop_class::get_sale_info($intId, $w, $p, " a.order_time desc", $ext_condit);
        $arrSaleList = $arrSaleArr['sale_info'];
        $intCount = count($arrSaleList);
        $pages = $arrSaleArr['pages'];