rabin 3 years ago
parent
commit
f73a65d49d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      service/mail/lib/Manage.php

+ 3 - 0
service/mail/lib/Manage.php

@@ -721,6 +721,9 @@ class Manage
         $shop = array();
         if ($data) {
             foreach ($data as $k => $v) {
+                if (!isset($shop[$v['type_id']])) {
+                    $shop[$v['shop_id']] = 0;
+                }
                 $price = $v['buy'];
                 $total += $price;
                 $shop[$v['shop_id']] += round($price * $per, 2);