1.提交缺失的东西

This commit is contained in:
2025-05-17 15:38:19 +08:00
parent bbdb401e71
commit 5be5385d5f
2 changed files with 103 additions and 1 deletions

View File

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