|
|
@@ -0,0 +1,28 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+
|
|
|
+namespace App\Http\Controllers\api\thirdPart\hengli;
|
|
|
+
|
|
|
+
|
|
|
+use App\Http\Controllers\Controller;
|
|
|
+use App\Services\OrderIssueService;
|
|
|
+use App\Services\WorkOrderService;
|
|
|
+use Illuminate\Http\Request;
|
|
|
+
|
|
|
+class OrderIssueController extends Controller
|
|
|
+{
|
|
|
+ public function checkInterceptPackage(Request $request)
|
|
|
+ {
|
|
|
+ /** @var WorkOrderService $workOrderService */
|
|
|
+ $workOrderService = app(WorkOrderService::class);
|
|
|
+ /** @var OrderIssueService $workOrderService */
|
|
|
+ $orderIssueService = app(OrderIssueService::class);
|
|
|
+ $logisticNumber = $request['expressCode'] ?? null;
|
|
|
+ if ($workOrderService->isIntercept($logisticNumber) || $workOrderService->isExists($logisticNumber)) {
|
|
|
+ // 显示在问题件已拦截
|
|
|
+ $orderIssueService->intercept($logisticNumber);
|
|
|
+ return ['success' => 'true','data'=> true];
|
|
|
+ }
|
|
|
+ return ['success' => 'true','data'=> false];
|
|
|
+ }
|
|
|
+}
|