From 1f04774af5bb9b77e1b323c4ca680a8f6a1142dc Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Tue, 3 Dec 2019 10:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=95=86=E5=93=81=E8=A1=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0sku=5Fid=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/models/ars/OrderGoods.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/models/ars/OrderGoods.php b/common/models/ars/OrderGoods.php index a1f647d..0b3cb53 100644 --- a/common/models/ars/OrderGoods.php +++ b/common/models/ars/OrderGoods.php @@ -20,6 +20,7 @@ use yii\behaviors\TimestampBehavior; * @property int $updated_at 更新时间 * @property int $created_at 创建时间 * @property int $weight 重量 + * @property int $sku_id sku_id */ class OrderGoods extends \yii\db\ActiveRecord { @@ -38,7 +39,7 @@ class OrderGoods extends \yii\db\ActiveRecord { return [ [['order_id', 'goods_id'], 'required'], - [['order_id', 'goods_id', 'goods_img', 'goods_count', 'price', 'market_price', 'weight'], 'integer'], + [['order_id', 'goods_id', 'goods_img', 'goods_count', 'price', 'market_price', 'weight', 'sku_id'], 'integer'], [['goods_name', 'sku_value'], 'string', 'max' => 120], ]; } @@ -61,6 +62,7 @@ class OrderGoods extends \yii\db\ActiveRecord 'updated_at' => '更新时间', 'created_at' => '创建时间', 'weight' => '重量', + 'sku_id' => 'sku_id', ]; }