\u5546\u52a1\u90e8<\/td> \u5546\u52a1\u987e\u95ee<\/td> 10\u4eba<\/td> 2\u4eba<\/td><\/tr><\/tbody><\/table>"}--结果:
yii\base\ErrorException
1.
in /mnt/www/fss/workorder/backend/controllers/ApiController.php
at line 1218
1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 $post_data['t_id'] = ''; //编辑的传gd_task 主键ID
*/
$type = $post_data['type'];
//常规类型工单
if ($type == 1){
$cid = $post_data['cid'];
//查询当前分类的标题
$class_info = WorkClass::findOne($cid);
$method = $class_info->name;
$trans = \Yii::$app->db->beginTransaction();
try{
//保存任务
if (isset($post_data['t_id']) && !empty($post_data['t_id'])){
//删除所有的 旧的执行者
$model = Task::findOne($post_data['t_id']);
ExecutorTask::deleteAll(['gd_id'=>$model->id]);
}else{
$model = new Task();
2.
in /mnt/www/fss/workorder/backend/controllers/ApiController.php
at line 1218
– yii\base\ErrorHandler::handleError (8 , 'Trying to get property 'name' of...' , '/mnt/www/fss/workorder/backend/c...' , 1218 , ...)
1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 $type = $post_data['type'];
//常规类型工单
if ($type == 1){
$cid = $post_data['cid'];
//查询当前分类的标题
$class_info = WorkClass::findOne($cid);
$method = $class_info->name;
$trans = \Yii::$app->db->beginTransaction();
try{
//保存任务
if (isset($post_data['t_id']) && !empty($post_data['t_id'])){
//删除所有的 旧的执行者
$model = Task::findOne($post_data['t_id']);
3.
backend\controllers\ApiController::actionCreatezp()
4.
in /mnt/www/fss/workorder/vendor/yiisoft/yii2/base/InlineAction.php
at line 57
– call_user_func_array([backend\controllers\ApiController , 'actionCreatezp' ], [])
51 52 53 54 55 56 57 58 59 $args = $this->controller->bindActionParams($this, $params);
Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
if (Yii::$app->requestedParams === null) {
Yii::$app->requestedParams = $args;
}
return call_user_func_array([$this->controller, $this->actionMethod], $args);
}
}
151 152 153 154 155 156 157 158 159 160 161 162 163 }
$result = null;
if ($runAction && $this->beforeAction($action)) {
// run the action
$result = $action->runWithParams($params);
$result = $this->afterAction($action, $result);
// call afterAction on modules
foreach ($modules as $module) {
/* @var $module Module */
522 523 524 525 526 527 528 529 530 531 532 533 534 $parts = $this->createController($route);
if (is_array($parts)) {
/* @var $controller Controller */
list($controller, $actionID) = $parts;
$oldController = Yii::$app->controller;
Yii::$app->controller = $controller;
$result = $controller->runAction($actionID, $params);
if ($oldController !== null) {
Yii::$app->controller = $oldController;
}
return $result;
}
97 98 99 100 101 102 103 104 105 106 107 108 109 $params = $this->catchAll;
unset($params[0]);
}
try {
Yii::debug("Route requested: '$route'", __METHOD__);
$this->requestedRoute = $route;
$result = $this->runAction($route, $params);
if ($result instanceof Response) {
return $result;
}
$response = $this->getResponse();
if ($result !== null) {
380 381 382 383 384 385 386 387 388 389 390 391 392 {
try {
$this->state = self::STATE_BEFORE_REQUEST;
$this->trigger(self::EVENT_BEFORE_REQUEST);
$this->state = self::STATE_HANDLING_REQUEST;
$response = $this->handleRequest($this->getRequest());
$this->state = self::STATE_AFTER_REQUEST;
$this->trigger(self::EVENT_AFTER_REQUEST);
$this->state = self::STATE_SENDING_RESPONSE;
$response->send();
11 12 13 14 15 16 17 require __DIR__ . '/../../common/config/main.php',
require __DIR__ . '/../../common/config/main-local.php',
require __DIR__ . '/../config/main.php',
require __DIR__ . '/../config/main-local.php'
);
(new yii\web\Application($config))->run();
$_POST = [
'type' => '1',
'cid' => '95',
'uid' => '46395',
'content' => '<p>申请招聘任务</p><p>公司:广西(南宁)法胜算;<br/>招聘申请时间:2024-04;<br/></p><table class="table table-striped table-bordered table-hover"><thead><tr><th>部门</th><th>岗位</th><th>实际编制</th><th>招聘人数</th></tr></thead><tbody><tr><td rowspan="1">商务部</td><td>商务顾问</td><td>10人</td><td>2人</td></tr></tbody></table>',
];
Warning : file_put_contents(/mnt/www/fss/workorder/backend/runtime/debug/660a7c426575d.data): failed to open stream: Permission denied in /mnt/www/fss/workorder/vendor/yiisoft/yii2-debug/src/LogTarget.php on line 74