1.提交缺失的东西

This commit is contained in:
2025-05-17 15:33:50 +08:00
parent 29eab7e6c4
commit 724ca1f269

View File

@ -938,7 +938,7 @@ class OrderLogic extends LogicBase
*/
public static function getOrderDetail($order_id, $user_id)
{
$order = Order::get(['del' => 0, 'id' => $order_id, 'user_id' => $user_id], ['orderGoods']);
$order = Order::find(['del' => 0, 'id' => $order_id, 'user_id' => $user_id])->with('orderGoods');
if (!$order){
return [];
}