|
...
|
...
|
@@ -18,6 +18,7 @@ use App\Models\Product\Category; |
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Models\Ticket\TicketUploadData;
|
|
|
|
use App\Models\WorkOrder\TicketProject;
|
|
|
|
use App\Services\AiCommandService;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use Illuminate\Http\Request;
|
|
...
|
...
|
@@ -178,6 +179,7 @@ class TicketUploadDataController extends BaseController |
|
|
|
}
|
|
|
|
//验证当前数据是否已提交
|
|
|
|
$this->param['text'] = json_encode($this->param['text'], true);
|
|
|
|
$this->pushTicketByBot($this->param['project_id']);
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
//执行编辑
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
...
|
...
|
@@ -200,6 +202,22 @@ class TicketUploadDataController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :6.0数据推送微信
|
|
|
|
* @name :pushTicketByBot
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/11/10 10:34
|
|
|
|
*/
|
|
|
|
public function pushTicketByBot($project_id)
|
|
|
|
{
|
|
|
|
$project = TicketProject::where('table_id', $project_id)->where('project_cate',2)->where('is_del', 0)->first();
|
|
|
|
if (!$project){
|
|
|
|
return response()->json(['message' => '未找到对应的工单项目'], 404);
|
|
|
|
}
|
|
|
|
return $project->pushWechatGroupMsg("您好,用户已上传数据,请审核!");
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :根据项目获取分类
|
|
|
|
* @name :getProductCate
|
|
|
|
* @author :lyh
|
...
|
...
|
|