作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

11

... ... @@ -20,7 +20,7 @@ class Style extends Model
*/
public static function getStyleList($where){
$list = self::where($where)
->order('weigh desc')
->order('weigh asc')
->select();
foreach($list as $v){
$v['style_value_list'] = self::getStyleValueList($v['id']);
... ... @@ -36,7 +36,7 @@ class Style extends Model
*/
public static function getStyleValueList($style_id){
$list = StyleValue::where('style_id',$style_id)
->order('weigh desc')
->order('weigh asc')
->select();
foreach($list as $v){
$v['style_list'] = self::getStyleList(['id'=>['in',$v['style_ids']]]);
... ...