gogs 11 months ago
parent
commit
bd29841182
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Service/LabelDealService.php

+ 1 - 1
app/Service/LabelDealService.php

@@ -27,7 +27,7 @@ class LabelDealService extends Service
                         'detail' => [],
                     ];
                 }
-                $return[$value['send_box_code']]['fake_qty'] += $tmp['fake_qty'];
+                $return[$value['send_box_code']]['fake_qty'] += $tmp['fake_qty'] ?? 0;
                 $return[$value['send_box_code']]['detail'] = array_merge($return[$value['send_box_code']]['detail'], explode(',',$tmp['brand_qr_code_list']));
             }
         }