break; } } else { $o = keke_table_class::get_instance('witkey_comment'); $tmp = $o->get_grid('obj_id=' . $task_id . ' and p_id=0', $url, $page, $limit, ' order by on_time desc ', 1, 'ajax_dom'); $list = $tmp['data']; $pages = $tmp['pages']; } break; case 'mark': $list = db_factory::query(sprintf(" select * from %switkey_mark where origin_id=%d and `mark_status`!=0 and model_code='%s'", TABLEPRE, $task_id, $model_info['model_code'])); break; case 'agree': keke_lang_class::loadlang('task_agreement', 'task_sreward'); $id = db_factory::get_count(sprintf(' select agree_id from %switkey_agreement where task_id=%d', TABLEPRE, $task_id)); $o = sreward_task_agreement::get_instance($id); $agree_info = $o->_agree_info; $buyer_contact = $o->_buyer_contact; $buyer_status_arr = $o->get_buyer_status(); $seller_contact = $o->_seller_contact; $seller_status_arr = $o->get_seller_status(); $buyer_uid = $o->_buyer_uid; $seller_uid = $o->_seller_uid; $buyer_username = $o->_buyer_username; $seller_username = $o->_seller_username; $agree_status = $o->_agree_status; $buyer_status = $o->_buyer_status; $seller_status = $o->_seller_status; $status_arr = $o->get_agreement_status(); $r = db_factory::get_count(sprintf(' select report_id from %switkey_report where origin_id=%d and report_type=1 and report_status!=4 limit 0,1', TABLEPRE, $task_id)); break;
<?php defined('IN_KEKE') or exit('Access Denied'); $strPageTitle = $arrAgreeInfo['agree_title'] . '--' . $_K['html_title']; $objAgreement = sreward_task_agreement::get_instance($agreeId); $arrAgreeInfo = $objAgreement->_agree_info; $arrProcessCan = $objAgreement->process_can(); $intUserType = $objAgreement->_user_role; $step = $objAgreement->stage_access_check($intUserType); $stage_nav = $objAgreement->agreement_stage_nav(); $strUrl = 'index.php?do=' . $do . '&agreeId=' . $agreeId . '&step=' . $step; $reportUrl = 'index.php?do=taskhandle&op=report&taskId=' . $arrAgreeInfo['task_id']; if ($gUid == $arrAgreeInfo['buyer_uid']) { $reportUrl .= '&objId=' . $arrAgreeInfo['work_id'] . '&objType=work&type=1&toUid=' . $arrAgreeInfo['seller_uid'] . '&toUsername='******'&objId=' . $arrAgreeInfo['task_id'] . '&objType=task&type=1&toUid=' . $arrAgreeInfo['buyer_uid'] . '&toUsername='******'seller_uid']); $arrWitkeyInfo['comefrom'] = keke_shop_class::getUserAddress($arrAgreeInfo['seller_uid'], 1, 1, 1, 0); $arrWitkeyLevel = unserialize($arrWitkeyInfo['seller_level']); $nearlyIncome = CommonClass::getNearlyIncomeForDays($arrWitkeyInfo['uid']); $arrEmploymerInfo = kekezu::get_user_info($arrAgreeInfo['buyer_uid']); $arrEmploymerInfo['comefrom'] = keke_shop_class::getUserAddress($arrAgreeInfo['buyer_uid'], 1, 1, 1, 0); $arrEmploymerLevel = unserialize($arrEmploymerInfo['buyer_level']); $arrTaskInfo = db_factory::get_one(sprintf("select * from %switkey_task where task_id = '%d'", TABLEPRE, $arrAgreeInfo['task_id'])); $taskStatus = $arrTaskInfo['task_status']; $config = unserialize($model_list[1]['config']); $jf_end_time = date('Y-m-d', $config['agree_complete_time'] * 24 * 3600 + $arrAgreeInfo['on_time']); $check_right_arr = db_factory::get_one(sprintf("select report_id,username,report_type from %switkey_report where report_status in(1,2) and origin_id ='%d'", TABLEPRE, $arrAgreeInfo['task_id'])); if ($taskStatus == 11 || $taskStatus == 13 || $taskStatus == 9) { header("location:index.php?do=task&id=" . $arrAgreeInfo['task_id']);
function pt_confirm($is_return = false, $work_id = null) { global $_K; $task_info = $this->_task_info; switch ($is_return) { case false: $extra_info[] = array($work_id); return keke_trust_fac_class::redirect_to_alipay($this->_interface, 'alipay_trust', $this->_task_info, $extra_info); break; case true: switch ($this->_data['is_success']) { case "T": $agree_id = db_factory::get_count(sprintf(" select agree_id from %switkey_agreement where task_id='%d'", TABLEPRE, $this->_task_id)); $agree_obj = sreward_task_agreement::get_instance($agree_id); $url = $_K['siteurl'] . "/index.php?do=agreement&agree_id=" . $agree_id . "&step=step3"; $res = $agree_obj->accept_confirm($url, 'json', true); break; case "F": return false; break; } break; } }