Esempio n. 1
0
     $modelInfo = $kekezu->_model_list[$arrTaskInfo['model_id']];
     $className = $modelInfo['model_code'] . "_task_class";
     if (intval($t) == 1) {
         $arrOrderinfo = db_factory::get_one(sprintf("select order_id from %switkey_order_detail where obj_id=%d and obj_type = 'task' and detail_type is NULL", TABLEPRE, $id));
     } else {
         $arrOrderinfo = db_factory::get_one(sprintf("select order_id from %switkey_order_detail where obj_id=%d and obj_type = 'task'", TABLEPRE, $id));
     }
     $obj = new $className($arrTaskInfo);
     $arrResult = $obj->dispose_order($arrOrderinfo['order_id']);
     if (intval($t) == 1) {
         $jumpUrl = 'index.php?do=task&id=' . $id;
         db_factory::updatetable(TABLEPRE . 'witkey_task', array('task_status' => 6), array('task_id' => intval($id)));
         $task_info = db_factory::get_one('select * from ' . TABLEPRE . 'witkey_task where task_id = ' . intval($id));
         $work_info = db_factory::get_one('select * from ' . TABLEPRE . 'witkey_task_work where task_id = ' . intval($id) . ' and work_status=4');
         $objYj = new yijia_task_class($task_info);
         $objYj->create_agree_date($work_info);
     } else {
         $jumpUrl = 'index.php?do=pubtask&id=' . $arrTaskInfo['model_id'] . '&step=step4&taskId=' . $id . '&status=1';
     }
     kekezu::clearCache();
     header('Location:' . $jumpUrl);
     break;
 case 'service':
     if ($orderId) {
         $arrServcie = db_factory::get_one("select * from " . TABLEPRE . "witkey_service where service_id=" . $id . "");
         PayitemClass::payPayitemOrder($orderId);
         $jumpUrl = 'index.php?do=pubgoods&id=' . $arrServcie['model_id'] . '&step=step3&serviceId=' . $id;
         header('Location:' . $jumpUrl);
     }
     break;
 case 'order':