|
|
@@ -33,13 +33,15 @@ class U8Deal
|
|
|
$return = json_decode($response->content(),true);
|
|
|
|
|
|
if(isset($return['code'])){
|
|
|
+ $data = $request->all();
|
|
|
+ $site = $data['site'] ?? "LFMY";
|
|
|
$path = $request->path();
|
|
|
$type = 0;
|
|
|
if($path == "api/materialAddU8"){
|
|
|
$type = RecordTable::type_one;
|
|
|
}elseif ($path == "api/productInAddU8"){
|
|
|
$type = RecordTable::type_two;
|
|
|
- }elseif ($path == ""){
|
|
|
+ }elseif ($path == "api/dispatchAddU8"){
|
|
|
$type = RecordTable::type_three;
|
|
|
}
|
|
|
$return_data = "";
|
|
|
@@ -50,6 +52,7 @@ class U8Deal
|
|
|
'crt_time' => time(),
|
|
|
'type' => $type,
|
|
|
'return_data' => $return_data,
|
|
|
+ 'site' => $site,
|
|
|
]);
|
|
|
}
|
|
|
}
|