Kirin 4 gadi atpakaļ
vecāks
revīzija
befe6f9d5f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/models/store/StoreOrder.php

+ 1 - 1
app/models/store/StoreOrder.php

@@ -891,7 +891,7 @@ class StoreOrder extends BaseModel
      */
      */
     public static function getUserOrderDetail($uid, $key)
     public static function getUserOrderDetail($uid, $key)
     {
     {
-        return self::with(['store', 'point'])->where('order_id|unique', $key)->where('uid', $uid)->where('is_del', 0)->find();
+        return self::with(['store', 'point'])->where('order_id|unique', $key)->where('uid|gift_uid', $uid)->where('is_del', 0)->find();
     }
     }