From d2f049bbb560cf2662987a638881e9f2001c5962 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Tue, 17 Dec 2019 09:41:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=B4=AD=E7=89=A9=E8=BD=A6=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81sku=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/shop/models/ars/Cart.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/modules/shop/models/ars/Cart.php b/backend/modules/shop/models/ars/Cart.php index 5b47553..2a2901b 100755 --- a/backend/modules/shop/models/ars/Cart.php +++ b/backend/modules/shop/models/ars/Cart.php @@ -18,6 +18,7 @@ use yii\behaviors\TimestampBehavior; * @property int $goods_count 商品数量 * @property int $created_at 创建时间 * @property int $updated_at 更新时间 + * @property string $sku_value 商品sku */ class Cart extends \yii\db\ActiveRecord { @@ -37,7 +38,7 @@ class Cart extends \yii\db\ActiveRecord return [ [['user_id', 'goods_id', 'goods_name', 'sku_id'], 'required'], [['user_id', 'goods_id', 'goods_img', 'goods_price', 'sku_id', 'goods_count'], 'integer'], - [['goods_name'], 'string', 'max' => 120], + [['goods_name', 'sku_value'], 'string', 'max' => 120], ]; } @@ -57,6 +58,7 @@ class Cart extends \yii\db\ActiveRecord 'goods_count' => '商品数量', 'created_at' => '创建时间', 'updated_at' => '更新时间', + 'sku_value' => '商品sku', ]; }