rabin 2 years ago
parent
commit
28d989def5
1 changed files with 12 additions and 0 deletions
  1. 12 0
      app/goods/lib/Set.php

+ 12 - 0
app/goods/lib/Set.php

@@ -39,6 +39,12 @@ class Set
                             $other_where['type'] = $where_type;
                         }
                     }
+                    if ($table == 'setting/role_goods') {
+                        $where_type = Dever::input('type', 1);
+                        if ($where_type) {
+                            $other_where['give'] = $where_type;
+                        }
+                    }
                     $other = Dever::db($table)->find($other_where);
                     $result[$i]['id'] = $v['id'];
                     $result[$i]['name'] = $v['name'];
@@ -132,6 +138,12 @@ class Set
                                     $other_sku_where['type'] = $where_type;
                                 }
                             }
+                            if ($table == 'setting/role_goods') {
+                                $where_type = Dever::input('type', 1);
+                                if ($where_type) {
+                                    $other_sku_where['give'] = $where_type;
+                                }
+                            }
                             $other_sku = Dever::db($table)->find($other_sku_where);
 
                             $children['select'] = 2;