From 342540009e6c2c389896b51c840c899295d5525b Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Wed, 11 Dec 2019 19:09:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=95=86=E5=93=81=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=9D=E5=AD=98=E6=8E=92=E5=BA=8F=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/goods/models/ars/Goods.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/modules/goods/models/ars/Goods.php b/backend/modules/goods/models/ars/Goods.php index e8168dc..723b35a 100755 --- a/backend/modules/goods/models/ars/Goods.php +++ b/backend/modules/goods/models/ars/Goods.php @@ -237,6 +237,9 @@ class Goods extends \yii\db\ActiveRecord if (!$this->limit_count) { $this->limit_count = 0; } + if (!$this->sort_order) { + $this->sort_order = 999; + } return parent::beforeSave($insert); // TODO: Change the autogenerated stub }