qifengquan 1 năm trước cách đây
mục cha
commit
342590749b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/data/controller/api/business/Purchase.php

+ 1 - 1
app/data/controller/api/business/Purchase.php

@@ -469,7 +469,7 @@ class Purchase extends Controller
                 ->findOrFail($data['id']);
             foreach ($model['items'] as &$v){
                 foreach ($v['offers'] as $aa=>&$a){
-                    if($a['id']!=$v['offer_id']){
+                    if($a['id']!=$v['offer_id'] && $v['offer_id']!=''){
                         unset($v['offers'][$aa]);
                     }
                     $a['amounts'] = ShopPurchaseOfferAmount::mk()