2024-04-01 17:20:02===http://workorder.fashengsuan.com/api/createzp--参数:{"type":1,"cid":95,"uid":46395,"content":"

\u7533\u8bf7\u62db\u8058\u4efb\u52a1<\/p>

\u516c\u53f8\uff1a\u5e7f\u897f\uff08\u5357\u5b81\uff09\u6cd5\u80dc\u7b97\uff1b\u62db\u8058\u7533\u8bf7\u65f6\u95f4\uff1a2024-04\uff1b<\/p>
\u90e8\u95e8<\/th>\u5c97\u4f4d<\/th>\u5b9e\u9645\u7f16\u5236<\/th>\u62db\u8058\u4eba\u6570<\/th><\/tr><\/thead>
\u5546\u52a1\u90e8<\/td>\u5546\u52a1\u987e\u95ee<\/td>10\u4eba<\/td>2\u4eba<\/td><\/tr><\/tbody><\/table>"}--结果: yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Noticeyii\base\ErrorException

Trying to get property 'name' of non-object

  • 1. in /mnt/www/fss/workorder/backend/controllers/ApiController.php at line 1218
    1209121012111212121312141215121612171218121912201221122212231224122512261227
                $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, ...)
    1212121312141215121612171218121912201221122212231224
                $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'], [])
    515253545556575859
            $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);
        }
    }
    
  • 5. in /mnt/www/fss/workorder/vendor/yiisoft/yii2/base/Controller.php at line 157 yii\base\InlineAction::runWithParams([])
    151152153154155156157158159160161162163
            }
     
            $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 */
    
  • 6. in /mnt/www/fss/workorder/vendor/yiisoft/yii2/base/Module.php at line 528 yii\base\Controller::runAction('createzp', [])
    522523524525526527528529530531532533534
            $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;
            }
    
  • 7. in /mnt/www/fss/workorder/vendor/yiisoft/yii2/web/Application.php at line 103 yii\base\Module::runAction('api/createzp', [])
    979899100101102103104105106107108109
                $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) {
    
  • 8. in /mnt/www/fss/workorder/vendor/yiisoft/yii2/base/Application.php at line 386 yii\web\Application::handleRequest(yii\web\Request)
    380381382383384385386387388389390391392
        {
            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();
    
  • 9. in /mnt/www/fss/workorder/backend/web/index.php at line 17 yii\base\Application::run()
    11121314151617
        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