wuggemail@foxmail.com 3 months ago
parent
commit
2919c37a1a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/cxinv/controller/FinancialManager.php

+ 3 - 3
app/cxinv/controller/FinancialManager.php

@@ -175,9 +175,9 @@ class FinancialManager extends Base{
         $ProductMap=[];
         if($info['status']==3){
            $map = $info->FinancialTz->ProductTz->toArray();
-           $ProductMap = array_map(function ($item){
-               if($item['type']==1) return $item['product_id'];
-               },$map);
+           foreach ($map as $k=>$v){
+               if($v['type']==1) $ProductMap[] = $v['product_id'];
+           }
         }
         foreach ($info['ProductRela'] as $key=>$val){
             if(in_array($val['product_id'],$ProductMap)){