cqpCow 1 ano atrás
pai
commit
2cc53f67bb
1 arquivos alterados com 1 adições e 0 exclusões
  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)) {