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