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


PHP kekezu::keke_show_msg方法代码示例

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


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

示例1: access_check

 public static function access_check($sid, $s_uid, $model_id)
 {
     global $uid, $kekezu, $_lang;
     $order_info = self::check_has_buy($sid, $uid);
     $order_status = $order_info['order_status'];
     $order_id = intval($order_info['order_id']);
     $model_code = $kekezu->_model_list[$model_id]['model_code'];
     if ($uid == $s_uid || $uid == $order_info['order_uid']) {
         return true;
     } else {
         kekezu::keke_show_msg("index.php?do=user&view=transaction&op=sold&intModelId=" . $model_id, '您没有权限进入此页面', 'error');
     }
 }
开发者ID:pengfeiaaa,项目名称:web,代码行数:13,代码来源:keke_shop_class.php

示例2: exec_mark_process

 public static function exec_mark_process($mark_id, $content, $mark_status = '1', $aid = null, $aid_star = null)
 {
     global $_lang;
     $log_obj = new Keke_witkey_mark_class();
     $mark_info = self::get_single_mark($mark_id);
     $log_obj->setWhere("mark_id = '{$mark_id}'");
     if (!$mark_info['mark_status'] || $mark_status < $mark_info['mark_status']) {
         $log_obj->setMark_status($mark_status);
     } else {
         kekezu::keke_show_msg('', $_lang['sorry_fail_level_not_down'], 'error', 'json');
     }
     $log_obj->setMark_content($content);
     $log_obj->setAid($aid);
     $log_obj->setAid_star($aid_star);
     $log_obj->setMark_count($mark_info['mark_count'] + 1);
     $mark_value = self::get_mark_score($mark_info['mark_type'], $mark_info[model_code], $mark_info['obj_cash'], $mark_status);
     $log_obj->setMark_value($mark_value);
     $res = $log_obj->edit_keke_witkey_mark();
     !$mark_info['mark_status'] and self::exec_rate($mark_status, $mark_info['uid'], $mark_info['obj_cash'], $mark_info['model_code'], $mark_info['mark_type']);
     return $res;
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:21,代码来源:keke_user_mark_class.php

示例3: check_start_vote

 public function check_start_vote($url = '', $output = 'normal')
 {
     global $_lang;
     if ($this->_uid != $this->_guid) {
         kekezu::keke_show_msg($url, $_lang['start_vote_fail_and_employer_can_vote'], "error", $output);
     } else {
         if (!$this->_process_can['task_vote']) {
             kekezu::keke_show_msg($url, $_lang['work_num_limit_notice'], "error", $output);
         } else {
             return true;
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:13,代码来源:sreward_task_class.php

示例4: check_access

 public function check_access($r_step, $model_id, $release_info, $service_id = null, $output = 'normal')
 {
     global $_lang, $gUid, $uid;
     switch ($r_step) {
         case "step1":
             break;
         case "step2":
             if (!$release_info['step1']) {
                 kekezu::keke_show_msg("index.php?do=pubgoods&id={$model_id}&step=step2", $_lang['no_input_goods_need_notice'], "error", $output);
             }
             break;
         case "step3":
             $sql = sprintf(" select uid,service_status,service_id from %switkey_service where service_id = '%d' and on_time>%d", TABLEPRE, $service_id, time() - 600);
             $service_info = db_factory::get_one($sql);
             if ($service_info['uid'] != $uid) {
                 kekezu::keke_show_msg("index.php?do=pubgoods", '你没有权限访问该页面', "error", $output);
             }
             $service_info or kekezu::keke_show_msg("index.php?do=pubgoods", $_lang['page_expired_notice'], "error", $output);
             return $service_info;
             break;
     }
 }
开发者ID:xupnge1314,项目名称:project,代码行数:22,代码来源:keke_shop_release_class.php

示例5: work_start

 public function work_start($url = '', $output = 'normal')
 {
     global $_lang;
     $work_info = $this->work_exists();
     if ($this->_task_status == 4 && $work_info['uid'] == $this->_uid) {
         $this->set_task_status(5);
         $g_notice = array($_lang['description'] => $_lang['wiki_confirmed_to_start_work'], $_lang['task_title'] => $this->_notice_url);
         $this->notify_user('match_task', $_lang['wiki_start_notice'], $g_notice);
         kekezu::keke_show_msg($url, $_lang['confirm_success'], '', $output);
     }
     kekezu::keke_show_msg($url, $_lang['system_is_busy_confirm_failed'], 'error', $output);
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:12,代码来源:match_task_class.php

示例6: select_bid_check

 public function select_bid_check($work_id, $url)
 {
     global $_lang;
     $this->_uid != $this->_guid and kekezu::keke_show_msg($url, $_lang['sorry_you_not_rights_operate']);
     $this->_task_bid_obj->setWhere(" bid_id = " . $work_id);
     $bid_info = $this->_task_bid_obj->query_keke_witkey_task_bid();
     $bid_info = $bid_info['0'];
     $bid_info['bid_status'] and kekezu::keke_show_msg($url, $_lang['please_not_repeat_bid']);
     $this->_task_info['task_status'] != 3 && $this->_task_info['task_status'] != 2 and kekezu::keke_show_msg($url, $_lang['present_status_not_choose_work']);
     return $bid_info;
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:11,代码来源:tender_task_class.php

示例7: check_if_favor

 public static function check_if_favor($uid, $obj_uid, $pk, $keep_type, $model_code, $obj_id, $url = '', $output = 'normal')
 {
     global $_lang;
     $favor_type = keke_glob_class::get_favor_type();
     $favor_tab = TABLEPRE . "witkey_" . $keep_type;
     if ($obj_uid == $uid) {
         kekezu::keke_show_msg($url, $_lang['you_can_not_collection_self'] . $favor_type[$keep_type] . "!", "error", $output);
     } else {
         $if_favor = db_factory::get_count(sprintf(" select f_id from %switkey_favorite where keep_type='%s' and obj_type='%s' and obj_id='%d' and uid='%d'", TABLEPRE, $keep_type, $model_code, $obj_id, $uid));
         if (!$if_favor) {
             return TRUE;
         } else {
             kekezu::keke_show_msg($url, $_lang['you_has_collection_this'] . $favor_type[$keep_type] . "," . $_lang['no_need_continue_collection'], "error", $output);
             return false;
         }
     }
 }
开发者ID:xupnge1314,项目名称:project,代码行数:17,代码来源:keke_core_class.php

示例8: dispose_order


//.........这里部分代码省略.........
                             return true;
                         }
                     } else {
                         if ($isApp) {
                             app_class::response(array('ret' => 1017, 'orderinfo' => $order_info));
                         } else {
                             return $_lang['order_deal_fail_and_link_kf'];
                         }
                     }
                     break;
                 case "working":
                     $intRes = keke_order_class::set_order_status($order_id, $action);
                     if ($order_info['obj_type'] == 'gy') {
                         self::sendNoticeToBuyer($order_info, '对方已经开始工作');
                     }
                     if ($intRes) {
                         return true;
                     } else {
                         return '操作失败';
                     }
                     break;
                 case "send":
                     $res = keke_order_class::set_order_status($order_id, $action);
                     if ($res) {
                         if ($order_info['obj_type'] == 'gy') {
                             self::sendNoticeToBuyer($order_info, '对方确认服务完成');
                         } else {
                             $v_arr = array($_lang['user_msg'] => $order_info['seller_username'], $_lang['action'] => $_lang['confirm_service_complete'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $b_order_link);
                             keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['service_order_confirm_complete'], $v_arr);
                         }
                         if ($isApp) {
                             app_class::response(array('ret' => 1018, 'orderinfo' => $order_info));
                         } else {
                             kekezu::keke_show_msg('', $_lang['order_deal_complete_and_order_comfirm'], '', 'json');
                         }
                     } else {
                         if ($isApp) {
                             app_class::response(array('ret' => 1019, 'orderinfo' => $order_info));
                         } else {
                             kekezu::keke_show_msg('', $_lang['order_deal_fail_and_link_kf'], 'error', 'json');
                         }
                     }
                     break;
                 case "complete":
                     $res = keke_order_class::set_order_status($order_id, $action);
                     if ($res) {
                         $model_info = $kekezu->_model_list[$order_info['model_id']];
                         if ($order_info['obj_type'] == 'gy') {
                             $arrServiceConfig = unserialize($kekezu->_model_list[7]['config']);
                             $profit = floatval($arrServiceConfig['service_profit']) * $order_info['order_amount'] / 100;
                         } else {
                             $profit = $service_info['profit_rate'] * $order_info['order_amount'] / 100;
                         }
                         if ($order_info['obj_type'] == 'gy') {
                             $data = array(':title' => $order_info['order_name']);
                         } else {
                             $data = array(':service_id' => $order_info['obj_id'], ':title' => $order_info['order_name']);
                         }
                         keke_finance_class::init_mem('sale_' . $order_info['obj_type'], $data);
                         keke_finance_class::cash_in($order_info['seller_uid'], $order_info['order_amount'] - $profit, 'sale_' . $order_info['obj_type'], '', 'service', $order_info['obj_id'], $profit);
                         keke_shop_class::plus_sale_num($order_info['obj_id'], $order_info['order_amount']);
                         keke_user_mark_class::create_mark_log($model_info['model_code'], 2, $order_info['order_uid'], $order_info['seller_uid'], $order_id, $order_info['order_amount'] - $profit, $order_info['obj_id'], $order_info['order_username'], $order_info['seller_username']);
                         keke_user_mark_class::create_mark_log($model_info['model_code'], 1, $order_info['seller_uid'], $order_info['order_uid'], $order_id, $order_info['order_amount'], $order_info['obj_id'], $order_info['seller_username'], $order_info['order_username']);
                         keke_shop_class::plus_mark_num($order_info['obj_id']);
                         $objProm = keke_prom_class::get_instance();
                         $objProm->dispose_prom_event("service", $order_info['order_uid'], $order_info['obj_id']);
开发者ID:xupnge1314,项目名称:project,代码行数:67,代码来源:service_shop_class.php

示例9: check_access

 public function check_access($r_step, $model_id, $release_info, $task_id = null, $output = 'normal')
 {
     global $_lang, $gUid, $uid;
     $model_id = intval($model_id);
     switch ($r_step) {
         case "step1":
             break;
         case "step2":
             $release_info['step1'] or kekezu::keke_show_msg("index.php?do=pubtask&id={$model_id}", $_lang['you_not_choose_task_model'], "error", $output);
             break;
         case "step3":
             if (!$release_info['step2'] && !$release_info['step1']) {
                 kekezu::keke_show_msg("index.php?do=pubtask&id={$model_id}", $_lang['you_not_choose_task_model_and_not_in'], "error", $output);
             } elseif (!$release_info['step2']) {
                 kekezu::keke_show_msg("index.php?do=pubtask&id={$model_id}&step=step2", $_lang['you_not_fill_requirement_and_not_in'], "error", $output);
             }
             break;
         case "step4":
             $sql = sprintf(" select * from %switkey_task where task_id = '%d' and model_id = '%d'", TABLEPRE, $task_id, $model_id);
             $task_info = db_factory::get_one($sql);
             if ($task_info['uid'] != $uid) {
                 kekezu::show_msg('无权访问该页面', "index.php?do=pubtask", '3', '你没有权限访问该页面', 'danger');
             }
             $task_info or kekezu::show_msg('无权访问该页面', "index.php?do=pubtask", '3', '你没有权限访问该页面', 'danger');
             return $task_info;
             break;
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:28,代码来源:keke_task_release_class.php

示例10: dispose_order


//.........这里部分代码省略.........
                                 if ($isApp) {
                                     app_class::response(array('ret' => 1013, 'orderinfo' => $order_info));
                                 } else {
                                     kekezu::show_msg($_lang['system prompt'], "index.php?do=user&view=employer&op=shop&model_id=" . $service_info['model_id'], '1', $_lang['order_deal_fail_and_link_kf'], 'alert_error');
                                 }
                             }
                             break;
                         case "confirm":
                             $res = keke_order_class::set_order_status($order_id, $action);
                             if ($res) {
                                 $model_info = $kekezu->_model_list[$order_info['model_id']];
                                 $profit = $service_info['profit_rate'] * $order_info['order_amount'] / 100;
                                 $data = array(':service_id' => $service_info['service_id'], ':title' => $service_info['title']);
                                 keke_finance_class::init_mem('sale_service', $data);
                                 keke_finance_class::cash_in($order_info['seller_uid'], $order_info['order_amount'] - $profit, 'sale_service', '', 'service', $order_info['obj_id'], $profit);
                                 keke_shop_class::plus_sale_num($order_info['obj_id'], $order_info['order_amount']);
                                 keke_user_mark_class::create_mark_log($model_info['model_code'], 2, $order_info['order_uid'], $order_info['seller_uid'], $order_id, $order_info['order_amount'] - $profit, $order_info['obj_id'], $order_info['order_username'], $order_info['seller_username']);
                                 keke_user_mark_class::create_mark_log($model_info['model_code'], 1, $order_info['seller_uid'], $order_info['order_uid'], $order_id, $order_info['order_amount'], $order_info['obj_id'], $order_info['seller_username'], $order_info['order_username']);
                                 keke_shop_class::plus_mark_num($order_info['obj_id']);
                                 $objProm = keke_prom_class::get_instance();
                                 if ($objProm->is_meet_requirement("service", $order_info[obj_id])) {
                                     $objProm->create_prom_event("service", $order_info['order_uid'], $order_info['obj_id'], $order_info['order_amount']);
                                 }
                                 $objProm->dispose_prom_event("service", $order_info['order_uid'], $order_info['obj_id']);
                                 if ($is_kf != null) {
                                     $v_arr = array($_lang['user_msg'] => $order_info['seller_username'], $_lang['action'] => '客服协助作品已交付完成', $_lang['order_id'] => $order_id, $_lang['order_link'] => $s_order_link);
                                     keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['work_order_complete'], $v_arr);
                                     $v_arr1 = array($_lang['user_msg'] => $order_info['order_username'], $_lang['action'] => '客服协助作品已交付完成', $_lang['order_id'] => $order_id, $_lang['order_link'] => $s_order_link);
                                     keke_shop_class::notify_user($order_info['seller_uid'], $order_info['seller_username'], "order_change", $_lang['work_order_complete'], $v_arr1);
                                     return true;
                                 } else {
                                     $v_arr = array($_lang['user_msg'] => $order_info['order_username'], $_lang['action'] => $_lang['buy_work_coplete'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $s_order_link);
                                     keke_shop_class::notify_user($order_info['seller_uid'], $order_info['seller_username'], "order_change", $_lang['work_order_complete'], $v_arr);
                                     if ($isApp) {
                                         app_class::response(array('ret' => 1022, 'orderinfo' => $order_info));
                                     } else {
                                         return true;
                                     }
                                 }
                             } else {
                                 if ($isApp) {
                                     app_class::response(array('ret' => 1023, 'orderinfo' => $order_info));
                                 } else {
                                     kekezu::show_msg($_lang['system prompt'], "index.php?do=order&sid={$order_info['obj_id']}&orderId={$order_id}&steps=step3", '1', $_lang['order_deal_fail_and_link_kf'], 'alert_error');
                                 }
                             }
                             break;
                         case "arbitral":
                             $res = keke_order_class::set_order_status($order_id, $action);
                             if ($res) {
                                 if ($uid == $order_info['order_uid']) {
                                     $v_arr = array($_lang['user'] => $order_info['order_username'], $_lang['action'] => $_lang['buyer_start_arbitrate'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $s_order_link);
                                     keke_shop_class::notify_user($order_id['seller_uid'], $order_info['seller_username'], "order_change", $_lang['sevice_order_arbitrate_submit'], $v_arr);
                                 } else {
                                     $v_arr = array($_lang['user_msg'] => $order_info['seller_username'], $_lang['action'] => $_lang['seller_start_arbitrate'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $b_order_link);
                                     keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['work_order_submit'], $v_arr);
                                 }
                                 if ($isApp) {
                                     app_class::response(array('ret' => 1022, 'orderinfo' => $order_info));
                                 } else {
                                     return true;
                                 }
                             } else {
                                 if ($isApp) {
                                     app_class::response(array('ret' => 1023, 'orderinfo' => $order_info));
                                 } else {
                                     return $_lang['order_deal_fail_and_link_kf'];
                                 }
                             }
                             break;
                     }
                 }
             } else {
                 $res = keke_order_class::set_order_status($order_id, 'close');
                 keke_order_class::order_cancel_return($order_id);
                 $v_arr = array($_lang['user_msg'] => $_lang['system'], $_lang['action'] => $_lang['stop_your_order_and_your_cash_return'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $b_order_link);
                 keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['goods_order_close'], $v_arr);
                 $v_arr = array($_lang['user_msg'] => $_lang['system'], $_lang['action'] => $_lang['stop_your_order_and_your_cash_return'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $s_order_link);
                 keke_shop_class::notify_user($order_info['seller_uid'], $order_info['seller_username'], "order_change", $_lang['goods_order_close'], $v_arr);
                 if ($isApp) {
                     $res and app_class::response(array('ret' => 1006)) or app_class::response(array('ret' => 1007));
                 } else {
                     $res and kekezu::keke_show_msg('', $_lang['order_delete_success'], "", 'json') or kekezu::keke_show_msg('', $_lang['order_delete_fail'], "error", 'json');
                 }
             }
         } else {
             if ($isApp) {
                 app_class::response(array('ret' => 1024, 'orderinfo' => $order_info));
             } else {
                 kekezu::keke_show_msg('', $_lang['error_order_num_notice'], 'error', 'json');
             }
         }
     } else {
         if ($isApp) {
             app_class::response(array('ret' => 1025, 'orderinfo' => $order_info));
         } else {
             kekezu::keke_show_msg('', $_lang['no_exist_goods_order'], 'error', 'json');
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:101,代码来源:goods_shop_class.php

示例11: check_if_can_mark

 public function check_if_can_mark($url = '', $output = 'normal')
 {
     global $_lang;
     if ($this->_process_can['work_mark'] || $this->_process_can['task_mark']) {
         return true;
     } else {
         kekezu::keke_show_msg($url, $_lang['current_status_can_not_mark'], "error", $output);
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:9,代码来源:keke_task_class.php


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