dever 3 years ago
parent
commit
29dce39903
2 changed files with 10 additions and 0 deletions
  1. 8 0
      app/shop/database/buy_order.php
  2. 2 0
      app/shop/database/info.php

+ 8 - 0
app/shop/database/buy_order.php

@@ -181,6 +181,13 @@ return array
             'match'     => 'option',
             # 读取另外表的关联方式
             'sync'      => array('type_id', 'id'),
+            'search'    => $search_option_type == 1 ? array
+            (
+                'api' => 'shop/info-like',
+                'col' => 'sid',
+                'result' => 'id',
+                'search' => 'type_id',//本表的字段,默认为当前的字段
+            ) : false,
             'list'      => $search_option_type == 1 ? true : false,
             'list_order' => 1,
         ),
@@ -193,6 +200,7 @@ return array
             'match'     => 'option',
             # 读取另外表的关联方式
             'sync'      => array('type_id', 'id'),
+            
             'list'      => $search_option_type == 1 ? 'Dever::load("shop/lib/manage.shopInfoType", {shop-info-type})' : false,
             'list_order' => 3,
         ),

+ 2 - 0
app/shop/database/info.php

@@ -741,6 +741,8 @@ return array
             'option' => array
             (
                 'name' => array('yes', 'like'),
+                'sid' => array('yes', 'like'),
+                'type' => array('yes', 'like'),
                 'id' => 'yes',
                 'status' => 1,
                 'state' => 1,