Explorar o código

修复:后台??商品SKU顺序不正确

萤火科技 hai 1 ano
pai
achega
275a135080
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/common/model/GoodsSku.php

+ 1 - 0
app/common/model/GoodsSku.php

@@ -103,6 +103,7 @@ class GoodsSku extends BaseModel
     {
         return (new static)->with($withImage ? ['image'] : [])
             ->where('goods_id', '=', $goodsId)
+            ->order(['id' => 'asc'])
             ->select();
     }