Explorar o código

德邦物流 id

king %!s(int64=4) %!d(string=hai) anos
pai
achega
0cd8b00b47
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      app/Services/DbOpenService.php

+ 4 - 1
app/Services/DbOpenService.php

@@ -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,