Browse Source

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

萤火科技 1 năm trước cách đây
mục cha
commit
275a135080
1 tập tin đã thay đổi với 1 bổ sung và 0 xóa
  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();
     }