|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @remark :
|
|
|
|
* @name :Project5CateController.php
|
|
|
|
* @name :Ticket5UploadDataController.php
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/11/8 09:35
|
|
...
|
...
|
@@ -15,7 +15,7 @@ use App\Models\Ticket\Project5Cate; |
|
|
|
use App\Models\WorkOrder\TicketProject;
|
|
|
|
use Illuminate\Support\Facades\Http;
|
|
|
|
|
|
|
|
class Project5CateController extends BaseController
|
|
|
|
class Ticket5UploadDataController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @remark :获取对应项目的分类
|
|
...
|
...
|
@@ -125,4 +125,32 @@ class Project5CateController extends BaseController |
|
|
|
}
|
|
|
|
$this->response('请求失败',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :提交数据
|
|
|
|
* @name :save
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/11/10 11:01
|
|
|
|
*/
|
|
|
|
public function save()
|
|
|
|
{
|
|
|
|
$this->request->validate([
|
|
|
|
'project_id' => 'required',
|
|
|
|
'type' => 'required',
|
|
|
|
'text' => 'required'
|
|
|
|
], [
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
'type.required' => '上传类型不能为空',
|
|
|
|
'text' => '数据详情不为空'
|
|
|
|
]);
|
|
|
|
if(empty($this->param['text']['image'])){
|
|
|
|
$this->response('参数错误',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
if(empty($this->param['text']['title'])){
|
|
|
|
$this->response('参数错误,标题不能为空',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
//验证当前数据是否已提交
|
|
|
|
$this->param['text'] = json_encode($this->param['text'], true);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|