if ($ext_fds) { CustomClass::editExtData($task_id, $model_id, $ext_fds); } $task_obj = new Keke_witkey_task_class(); $task_obj->setWhere(" task_id ='{$task_id}'"); $task_obj->setTask_title(kekezu::escape($task_title)); if ($txt_task_day) { $task_obj->setSub_time(strtotime($txt_task_day)); $task_obj->setEnd_time(strtotime($txt_task_day) + $task_config['choose_time'] * 24 * 3600); } $task_obj->setIndus_id($slt_indus_id); $task_obj->setTask_cash($task_cash); $task_obj->setReal_cash($task_cash * (1 - $task_info['profit_rate'] / 100)); $fds['task_cash_coverage'] and $task_obj->setTask_cash_coverage($fds['task_cash_coverage']); $fds['budget'] and $task_obj->setBudget($fds['budget']); $task_obj->setTask_desc($task_desc); $fields = kekezu::escape($fields); $task_obj->setSeo_title($fields['seo_title']); $task_obj->setSeo_keyword($fields['seo_keyword']); $task_obj->setSeo_desc($fields['seo_desc']); if ($_FILES['fle_task_pic']['name']) { $task_pic = keke_file_class::upload_file("fle_task_pic"); } else { $task_pic = $task_pic_path; } $task_obj->setTask_pic($task_pic); kekezu::admin_system_log($_lang['edit_task'] . ":{$task_title}"); $res = $task_obj->edit_keke_witkey_task(); $v_arr = array($_lang['admin_name'] => $myinfo_arr['username'], $_lang['time'] => date('Y-m-d H:i:s', time()), $_lang['model_name'] => $model_info['model_name'], $_lang['task_id'] => $task_info['task_id'], $_lang['task_title'] => $task_info['task_title']); keke_msg_class::notify_user($task_info['uid'], $task_info['username'], 'task_edit', $_lang['edit_task'], $v_arr, 1); } elseif ($sbt_act) {
if ($op == 'basic') { $task_info['ext_fields'] = CustomClass::getExtDataList($task_id, $task_info['model_id']); if ($sbt_edit) { if ($ext_fds) { CustomClass::editExtData($task_id, $model_id, $ext_fds); } $task_obj = new Keke_witkey_task_class(); $task_obj->setWhere(" task_id =" . $task_id); $task_obj->setTask_title(kekezu::escape($fields['task_title'])); if ($txt_task_day) { $task_obj->setSub_time(strtotime($txt_task_day)); $task_obj->setEnd_time(strtotime($txt_task_day) + $task_config['choose_time'] * 24 * 3600); } $task_obj->setIndus_id($slt_indus_id); $task_obj->setTask_cash($fields['task_cash']); $task_obj->setTask_desc($fields['task_desc']); $fields = kekezu::escape($fields); $task_obj->setSeo_title($fields['seo_title']); $task_obj->setSeo_keyword($fields['seo_keyword']); $task_obj->setSeo_desc($fields['seo_desc']); if ($_FILES['fle_task_pic']['name']) { $task_pic = keke_file_class::upload_file("fle_task_pic"); } else { $task_pic = $task_pic_path; } $task_obj->setTask_pic($task_pic); $item_ids = array(); $cash = $task_info['att_cash'] ? $task_info['att_cash'] : 0; $task_obj->setAtt_cash($cash); kekezu::admin_system_log($_lang['edit_task'] . ":{$fields['task_title']}"); $res = $task_obj->edit_keke_witkey_task();