|
|
@@ -6,9 +6,13 @@ use App\Components\AsyncResponse;
|
|
|
use App\Components\Database;
|
|
|
use App\Components\ErrorPush;
|
|
|
use App\Exceptions\Exception;
|
|
|
+use App\Rejected;
|
|
|
+use App\RejectedBill;
|
|
|
+use App\RejectedBillItem;
|
|
|
use App\Services\WaybillService;
|
|
|
use App\User;
|
|
|
use App\Waybill;
|
|
|
+use Illuminate\Database\Eloquent\Collection;
|
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
@@ -37,49 +41,13 @@ class TestController extends Controller
|
|
|
}
|
|
|
public function test()
|
|
|
{
|
|
|
- $json = <<<json
|
|
|
-{
|
|
|
- "request": [
|
|
|
- {
|
|
|
- "ORDERNUMBERCODE": "ASN2205270586",
|
|
|
- "CUSTOMERID": "JIANSHANG",
|
|
|
- "ASNTYPE": "THRK",
|
|
|
- "ASNREFERENCE1": "92052644969",
|
|
|
- "ADDWHO": "WCS",
|
|
|
- "USERDEFINE1": "",
|
|
|
- "USERDEFINE2": "",
|
|
|
- "USERDEFINE3": "",
|
|
|
- "SKU_LIST": [
|
|
|
- {
|
|
|
- "ORDERNUMBERCODE": "ASN2205270586",
|
|
|
- "ASNLINENO": "1",
|
|
|
- "SKUCODE": "6213100205402",
|
|
|
- "QUANTITY": "1",
|
|
|
- "LOTATT04": "",
|
|
|
- "LOTATT05": "MJ-CP",
|
|
|
- "STATUS": "CC",
|
|
|
- "PRODUCTION DATE": "",
|
|
|
- "EXPIRATION DATE": "",
|
|
|
- "USERDEFINE1": "JIANSHANG02",
|
|
|
- "USERDEFINE2": "",
|
|
|
- "USERDEFINE3": "",
|
|
|
- "UNIQUE_CODE_LIST": []
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
-json;
|
|
|
-
|
|
|
- $sendingJson = json_decode($json,true);
|
|
|
- $url=url(config('api.flux.receive.new'));
|
|
|
- try{
|
|
|
- $response = Zttp::post($url, $sendingJson);
|
|
|
- dd($response->json());
|
|
|
- }catch (\Exception $exception){
|
|
|
- Controller::logS(__METHOD__,'Exception_'.__FUNCTION__,'CURL请求异常:'.$exception->getMessage(),null);
|
|
|
- dd($exception);
|
|
|
+ $url = config('api.java.base').config('api.java.device.picking.getContainerOfWave');
|
|
|
+ $get = Http::get($url, ["container" => "JH028"]);
|
|
|
+ $result = $get->json();
|
|
|
+ if ($result["code"] != 200) {
|
|
|
+ return response()->json(['result'=>'failure','fail_info'=>$result["message"]])->setEncodingOptions(JSON_UNESCAPED_UNICODE);
|
|
|
}
|
|
|
+ dd($result["data"]);
|
|
|
}
|
|
|
}
|
|
|
|