|
|
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
|
|
use App\Logistic;
|
|
|
use App\Order;
|
|
|
use App\OrderTracking;
|
|
|
+use App\Services\common\ExportService;
|
|
|
use App\Services\LogService;
|
|
|
use App\Services\OrderTrackingService;
|
|
|
use App\Services\OwnerService;
|
|
|
@@ -222,16 +223,7 @@ class OrderTrackingController extends Controller
|
|
|
$orderTracking->remark,
|
|
|
];
|
|
|
}
|
|
|
- $post=Http::post(config('go.export.url'),['type'=>'base','data'=>json_encode(['row'=>$row,'list'=>$list,'mergeColumn'=>$mergeColumn,'mergeRow'=>$mergeRow],JSON_UNESCAPED_UNICODE),
|
|
|
- 'createFormat'=>'merge']);
|
|
|
-
|
|
|
- if ($post->status() == 500){
|
|
|
- throw new Exception($post->header("Msg"));
|
|
|
- }
|
|
|
- return response($post,200, [
|
|
|
- "Content-type"=>"application/octet-stream",
|
|
|
- "Content-Disposition"=>"attachment; filename=订单跟踪件-".date('ymdHis').'.xlsx',
|
|
|
- ]);
|
|
|
+ return app(ExportService::class)->json($row,$list,'订单跟踪件','merge',$mergeColumn,$mergeRow);
|
|
|
}
|
|
|
|
|
|
public function destroyImg(Request $request)
|