更新
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace app\adminapi\logic\order;
|
||||
|
||||
use app\adminapi\service\order\PaymentPrescriptionOrderService;
|
||||
use app\common\model\Order;
|
||||
use app\common\model\OrderDetail;
|
||||
use app\common\model\auth\Admin;
|
||||
@@ -776,7 +777,11 @@ class OrderLogic
|
||||
return null;
|
||||
}
|
||||
|
||||
return $order->toArray();
|
||||
$detail = $order->toArray();
|
||||
$prescriptionOrders = PaymentPrescriptionOrderService::forPaymentIds([$id]);
|
||||
$detail['prescription_orders'] = $prescriptionOrders[$id] ?? [];
|
||||
|
||||
return $detail;
|
||||
}
|
||||
|
||||
private static $error = '';
|
||||
|
||||
Reference in New Issue
Block a user