Commit f214236e authored by hangjun83's avatar hangjun83

openapi 震坤行

parent 06cc8100
......@@ -57,8 +57,12 @@ class ZhenkhController extends Controller
try{
$params = $request->all();
$this->zhenKhService->getDeliveryOrderPdf($params['delivery_code']);
return Response::success(null, '操作成功');
$result = $this->zhenKhService->getDeliveryOrderPdf($params['delivery_code']);
if($result){
return Response::success($result, '操作成功');
}else{
return Response::fail('获取pdf失败,无法找到相应的pdf文件', 500);
}
}catch(\Exception $exception){
return Response::fail($exception->getMessage(),500);
}
......
......@@ -340,7 +340,10 @@ class ZhenKhService
return $deliveryInfo;
}
}
return $pdf['pdf'];
if(!is_null($pdf)){
return $pdf['pdf'];
}
return false;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment