作者 lyh

变更数据

... ... @@ -53,7 +53,9 @@ class Ticket5UploadDataController extends BaseController
$this->response('当前项目不存在或数据未同步',Code::SYSTEM_ERROR);
}
//todo::目前写死
$projectInfo['website'] = 'https://devmark.globalso.com/';
if($projectInfo['website'] != 'https://www.lstchocolatemachine.com/'){
$this->response('当前项目不允许操作',Code::SYSTEM_ERROR);
}
$action = $project5CateModel->getCateTypeAction($this->param['type']);
if(empty($action)){
$this->response('未知请求',Code::SYSTEM_ERROR);
... ... @@ -102,7 +104,9 @@ class Ticket5UploadDataController extends BaseController
}
$project5CateModel = new Project5Cate();
//todo::目前写死,上线放开
$projectInfo['website'] = 'https://devmark.globalso.com/';
if($projectInfo['website'] != 'https://www.lstchocolatemachine.com/'){
$this->response('当前项目不允许操作',Code::SYSTEM_ERROR);
}
$action = $project5CateModel->saveCateTypeAction($this->param['type']);
$url = $projectInfo['website'].'wp-admin/admin-ajax.php?action='.$action;
if(empty($action)){
... ...
... ... @@ -183,7 +183,9 @@ class TicketUploadDataLogic extends BaseLogic
if($projectInfo === false){
$this->fail('当前项目不存在或数据未同步');
}
$projectInfo['website'] = 'https://devmark.globalso.com/';
if($projectInfo['website'] != 'https://www.lstchocolatemachine.com/'){
$this->fail('当前项目不允许操作');
}
$action = $this->model->saveAction($info['type']);
$url = $projectInfo['website'].'wp-admin/admin-ajax.php?action='.$action;
if(empty($action)){
... ...