Prechádzať zdrojové kódy

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

萤火科技 1 rok pred
rodič
commit
275a135080
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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();
     }