@@ -659,6 +659,20 @@ $config = array
'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
),
+ # 获取一条数据
+ 'getOne' => array
+ (
+ # 匹配的正则或函数 选填项
+ 'option' => array
+ 'status' => 1,
+ 'state' => 1,
+ ),
+ 'type' => 'all',
+ 'order' => array('reorder' => 'desc', 'id' => 'desc'),
+ 'col' => '*',
+
# 推荐列表
'getTop' => array
(
@@ -367,6 +367,10 @@ class Sell
}
+ if ($info['type'] == 10) {
+ $info['code'] = '';
+ }
return $info;