cqpCow 1 год назад
Родитель
Сommit
2cc53f67bb
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/Service/PurchaseOrderService.php

+ 1 - 0
app/Service/PurchaseOrderService.php

@@ -235,6 +235,7 @@ class PurchaseOrderService extends Service
 
         //总社id
         $top_depart_id = $user['head'] ?? [];
+        $top_depart_id = $top_depart_id['id'] ?? 0;
         if(empty($order['state'])) {
             //分社的采购单 供应商是总社
             if($order['top_depart_id'] != $top_depart_id && ! empty($supplier->is_main)) {