|
@@ -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)){
|