|
|
@@ -5,6 +5,7 @@ namespace App\Services;
|
|
|
use App\Components\ErrorPush;
|
|
|
use App\Traits\ServiceAppAop;
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
+use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
|
|
|
class DbOpenService
|
|
|
@@ -34,6 +35,8 @@ class DbOpenService
|
|
|
|
|
|
try {
|
|
|
$response = httpPost(config('api_logistic.DB.prod.uri')['create_order'], $body, $header);
|
|
|
+ Log::info($body);
|
|
|
+ Log::info($response);
|
|
|
if (!$response["result"])return null;
|
|
|
return $response ?? '';
|
|
|
//OracleDOCOrderHeader::query()->where('orderno', $order_no)->update(['edittime' => Carbon::now(), 'soreference5' => $mail_no]);
|
|
|
@@ -117,7 +120,7 @@ class DbOpenService
|
|
|
'totalWeight' => $waybill->total_weight ?? '',
|
|
|
'totalVolume' => '',
|
|
|
'packageService' => $waybill->package_service ?? '',
|
|
|
- 'deliveryType' => $waybill->deliveryType->name ?? '',
|
|
|
+ 'deliveryType' => $waybill->deliveryType->id ?? ''
|
|
|
],
|
|
|
'gmtCommit' => $date,
|
|
|
'payType' => $waybill->pay_type,
|