Explorar o código

Request错误

LD %!s(int64=5) %!d(string=hai) anos
pai
achega
dee5268987

+ 1 - 1
app/Http/Controllers/CitiesController.php

@@ -13,7 +13,7 @@ use Illuminate\Support\Facades\Validator;
 
 class CitiesController extends Controller
 {
-    public function index(ForeignHaiRobotic_taskUpdateRequest $request)
+    public function index(Request $request)
     {
         if(!Gate::allows('城市-查询')){ return redirect(url('/'));  }
         $cities=City::orderBy('id', 'DESC')->paginate(50);

+ 2 - 2
app/Http/Controllers/api/thirdPart/haiq/PickStationController.php

@@ -6,8 +6,8 @@ namespace App\Http\Controllers\api\thirdPart\haiq;
 
 
 
+use App\Http\Requests\ForeignHaiRobotic_processedRequest;
 use App\Services\ForeignHaiRoboticsService;
-use Illuminate\Http\Request;
 
 class PickStationController
 {
@@ -18,7 +18,7 @@ class PickStationController
         $this->service=app('ForeignHaiRoboticsService');
     }
 
-    public function processed(Request $request): array
+    public function processed(ForeignHaiRobotic_processedRequest $request): array
     {
         $failed=
             ($processedResult=

+ 1 - 2
app/Services/ForeignHaiRoboticsService.php

@@ -144,8 +144,7 @@ class ForeignHaiRoboticsService
             $this->stationTaskMaterialBoxService
                 ->excepted($stationTaskMaterialBox??$materialBox??null);
             return $e->getMessage();
-        }
-    }
+        }    }
 
     public function putBinToStore(StationTaskMaterialBox $stationTaskMaterialBox): bool
     {

+ 9 - 1
tests/webApi/thirdPart/haiq/pickStation.http

@@ -5,8 +5,16 @@
 ## * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
 ## * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
 
+#
+#POST https://was.baoshi56.com/api/thirdPart/haiq/pickStation/processed
+#Content-Type: application/json
+#
+#{"success":true}
+####
 
-POST https://was.baoshi56.com/api/thirdPart/haiq/pickStation/processed
+
+
+POST http://bswas/api/thirdPart/haiq/pickStation/processed
 Content-Type: application/json
 
 {"success":true}