|
|
@@ -1574,4 +1574,17 @@ where (commodities.owner_id,commodity_barcodes.code) in (select commodities.owne
|
|
|
return (new PrintPartController())->print($request);
|
|
|
}
|
|
|
|
|
|
+ public function testSendCon(Request $request)
|
|
|
+ {
|
|
|
+ $content = [
|
|
|
+ "type" => "getClients",
|
|
|
+ "aliasName" => "test",
|
|
|
+ "printerName" => "打印机5",
|
|
|
+ ];
|
|
|
+ $post = Http::post("http://127.0.0.1:3000", $content);
|
|
|
+ $body = json_decode($post->body(),true);
|
|
|
+ $body['msg'] = json_decode($body['msg'],true);
|
|
|
+ dd(json_decode($post->body()),$post->body(),$body);
|
|
|
+ }
|
|
|
+
|
|
|
}
|