request->headers->get('uuid-key'); //$this->checkAuth($key); // return true; //} public function actionGetpause() { //$user_uuid = null,$id_work = $get = Yii::$app->request->get(); $GWparams = ['url' => 'http://devplatform.digitaldepot.ru:8085/Thingworx/Things/SMoPPIntegrationLibrary/Services/work_pause', 'param' => $get, 'login' => 'ПройдаковИА', 'pass' => 'Ip15351112' ]; $mainModel = new MainModel(); $listWorks = json_decode($mainModel->curlRequestUni($GWparams)); return true; } public function actionTest() { //$user_uuid = null,$id_work = $get = Yii::$app->request->get(); $mappingapiModel = new MappingapiModel(); $mappingapiModel->workDetail($get); return true; } public function actionTest2() { //$get = Yii::$app->request->get(); $user_uuid = Yii::$app->request->get('user_id'); $work_uuid = Yii::$app->request->get('id_work'); $maintask = 95705; $params = []; // завершаю задачу $taskEntity2 = \app\models\entity\Tasks::findOne($maintask); $taskEntity2->status = 5; //var_dump($maintask); //$taskEntity2->save(); // завершаю все команды \app\models\entity\Tasks::updateAll(['parent_id' => $maintask]); // запрос к еипп //$work_uuid = $taskEntity2->asusgjob2launch->asusg_job_uuid; //$user_uuid = $taskEntity2->assignees_arr->uuid; //var_dump($taskEntity2->assignees_arr->uuid); $params['user_id'] = "0f9ed850-e473-11e2-aaad-ac162db0b20c"; $params['id_work'] = "a0a572e0-4d70-45d7-ac4a-9483933c70b9"; $params['id_reason'] = "прочее"; $params['comment'] = "прочее"; //var_dump($params); if ( null != $work_uuid) { $mappingapiModel = new \app\models\MappingapiModel(); $mappingapiModel->getPause($params); } exit; } }