shish 2 vuotta sitten
vanhempi
commit
76303fbe0c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      biz-ghs/stat/classes/StatSaleClass.php

+ 1 - 1
biz-ghs/stat/classes/StatSaleClass.php

@@ -1312,7 +1312,7 @@ class StatSaleClass extends BaseClass
                     continue;
                 }
                 $sendStaffId = $ghsOrder['sendStaffId'] ?? 0;
-                $sendStaffName = $ghsOrder['sendStaffName'] ?? '未记名';
+                $sendStaffName = isset($ghsOrder['sendStaffName']) && !empty($ghsOrder['sendStaffName']) ? $ghsOrder['sendStaffName'] : '未记名';
                 if (isset($arr[$sendStaffId])) {
                     $arr[$sendStaffId]['orderNum'] = bcadd($arr[$sendStaffId]['orderNum'], 1);
                     $arr[$sendStaffId]['amount'] = bcadd($arr[$sendStaffId]['amount'], $actPrice, 2);