|
...
|
...
|
@@ -52,9 +52,8 @@ class Ticket5UploadDataController extends BaseController |
|
|
|
if($projectInfo === false){
|
|
|
|
$this->response('当前项目不存在或数据未同步',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
//todo::目前写死
|
|
|
|
if($projectInfo['website'] != 'https://www.lstchocolatemachine.com/'){
|
|
|
|
$this->response('当前项目不允许操作',Code::SYSTEM_ERROR);
|
|
|
|
if(isset($projectInfo['split']) && $projectInfo['split'] == 1){
|
|
|
|
$projectInfo['website'] = $projectInfo['test_website'] ?? '';
|
|
|
|
}
|
|
|
|
$action = $project5CateModel->getCateTypeAction($this->param['type']);
|
|
|
|
if(empty($action)){
|
|
...
|
...
|
@@ -105,11 +104,10 @@ class Ticket5UploadDataController extends BaseController |
|
|
|
if($projectInfo === false){
|
|
|
|
$this->response('当前项目不存在或数据未同步',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
$project5CateModel = new Project5Cate();
|
|
|
|
//todo::目前写死,上线放开
|
|
|
|
if($projectInfo['website'] != 'https://www.lstchocolatemachine.com/'){
|
|
|
|
$this->response('当前项目不允许操作',Code::SYSTEM_ERROR);
|
|
|
|
if(isset($projectInfo['split']) && $projectInfo['split'] == 1){
|
|
|
|
$projectInfo['website'] = $projectInfo['test_website'] ?? '';
|
|
|
|
}
|
|
|
|
$project5CateModel = new Project5Cate();
|
|
|
|
$action = $project5CateModel->saveCateTypeAction($this->param['type']);
|
|
|
|
$url = $projectInfo['website'].'wp-admin/admin-ajax.php?action='.$action;
|
|
|
|
if(empty($action)){
|
|
...
|
...
|
@@ -169,7 +167,7 @@ class Ticket5UploadDataController extends BaseController |
|
|
|
}
|
|
|
|
//验证当前数据是否已提交
|
|
|
|
$this->param['text'] = json_encode($this->param['text'], true);
|
|
|
|
// $this->pushTicketByBots($this->param['post_id'],$this->param['project_type']);
|
|
|
|
$this->pushTicketByBots($this->param['post_id'],$this->param['project_type']);
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
//执行编辑
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
...
|
...
|
|