当前位置: 首页>>代码示例>>PHP>>正文


PHP kekezu::get_task_config方法代码示例

本文整理汇总了PHP中kekezu::get_task_config方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::get_task_config方法的具体用法?PHP kekezu::get_task_config怎么用?PHP kekezu::get_task_config使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kekezu的用法示例。


在下文中一共展示了kekezu::get_task_config方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role('m612');
$goods_config = kekezu::get_task_config($model_id);
is_array($goods_config) and extract($goods_config) or $goods_config = array();
$model_obj = keke_table_class::get_instance('witkey_model');
$ops = array('config', 'control', 'rule');
in_array($op, $ops) or $op = 'config';
$url = "index.php?do=model&model_id={$model_id}&view=config&op={$op}";
kekezu::empty_cache();
$indus_arr = $kekezu->_indus_arr;
$indus_index = kekezu::get_indus_by_index();
if (isset($sbt_edit)) {
    $log_op_arr = array("config" => $_lang['goods_basic_config'], "control" => $_lang['goods_flow_config'], "rule" => $_lang['goods_permissions_config']);
    $log_msg = $_lang['has_update'] . $log_op_arr[$op];
    kekezu::admin_system_log($log_msg);
    switch ($op) {
        case 'config':
            !empty($fds['indus_bid']) and $fds['indus_bid'] = implode(",", $fds['indus_bid']) or $fds['indus_bid'] = '';
            $fds['on_time'] = time();
            $fds = kekezu::escape($fds);
            $res = $model_obj->save($fds, $pk);
            kekezu::admin_show_msg($_lang['goods_basic_config_update_success'], $url, 3, '', 'success');
            break;
        case 'control':
            if ($filepath) {
                copy("../" . $filepath, "../tpl/default/img/shop/shop_default_big.png");
            }
            is_array($cont) and $res = keke_task_config::set_task_ext_config($model_id, $cont);
            kekezu::admin_show_msg($_lang['goods_flow_config_update_success'], $url, 3, '', 'success');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:goods_config.php

示例2: task_xg_timeout

 public function task_xg_timeout()
 {
     global $_lang;
     if (time() > $this->_task_info['end_time'] && $this->_task_info['task_status'] == 3) {
         $mxs_config = kekezu::get_task_config(2);
         $prize_date = $this->get_prize_date();
         $total_prize_count = $prize_date['count']['prize_1'] + $prize_date['count']['prize_2'] + $prize_date['count']['prize_3'];
         $work_num = $this->_task_info['work_num'];
         $bid_count = db_factory::get_count(sprintf("select count(work_id) as work_count from %switkey_task_work where task_id='%d' and work_status in (1,2,3) ", TABLEPRE, $this->_task_id));
         if (!$bid_count) {
             $this->auto_choose($prize_date['count']['prize_1'], $prize_date['count']['prize_2'], $total_prize_count);
         } else {
             $this->set_task_status(5);
             $this->set_task_sp_end_time();
             $v_arr = array($_lang['username'] => $this->_gusername, $_lang['model_name'] => $this->_model_name, $_lang['task_id'] => $this->_task_id, $_lang['task_title'] => $this->_task_title, $_lang['tb'] => $_lang['tg'], $_lang['time'] => date('Y-m-d H:i:s'), 'next' => $_lang['gs']);
             keke_msg_class::notify_user($this->_guid, $this->_gusername, 'timeout', $_lang['task_gs'], $v_arr, 1);
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:19,代码来源:mreward_task_class.php


注:本文中的kekezu::get_task_config方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。