From 342a0f22f8b847d10c7f91112c99c91c7f99ad9e Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Thu, 5 Dec 2019 15:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=8F=92=E4=BB=B6=E5=8A=A0=E8=BD=BD=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/goods/models/ars/GoodsSku.php | 4 ++-- backend/modules/goods/views/goods/picture.php | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/modules/goods/models/ars/GoodsSku.php b/backend/modules/goods/models/ars/GoodsSku.php index 053394a..ab0b17d 100755 --- a/backend/modules/goods/models/ars/GoodsSku.php +++ b/backend/modules/goods/models/ars/GoodsSku.php @@ -6,7 +6,7 @@ use Yii; use yii\behaviors\TimestampBehavior; /** - * This is the model class for table "goods_goods_sku". + * This is the model class for table "atg_goods_sku". * * @property int $id * @property int $goods_id 商品id @@ -38,7 +38,7 @@ class GoodsSku extends \yii\db\ActiveRecord */ public static function tableName() { - return 'goods_goods_sku'; + return 'atg_goods_sku'; } /** diff --git a/backend/modules/goods/views/goods/picture.php b/backend/modules/goods/views/goods/picture.php index eb0cec4..022f640 100755 --- a/backend/modules/goods/views/goods/picture.php +++ b/backend/modules/goods/views/goods/picture.php @@ -15,9 +15,8 @@ use yii\helpers\Url; 'maxCount' => 1, 'fillInAttribute' => 'coverImageId', 'model' => $model, - 'ruleVerify' => $model->ruleVerify, 'previewConfig' => [ - 'url' => Url::to(['image-file', 'fileidstr' => $model->coverImageId]), + 'url' => Url::to(['image-file', 'fileidstr' => $model->coverImageId, 'ruleverify' => $model->ruleVerify]), ], ])->label('商品封面图') ?> @@ -30,8 +29,7 @@ use yii\helpers\Url; 'maxCount' => 5, 'fillInAttribute' => 'detailImageId', 'model' => $model, - 'ruleVerify' => $model->ruleVerify, 'previewConfig' => [ - 'url' => Url::to(['image-file', 'fileidstr' => $model->detailImageId]), + 'url' => Url::to(['image-file', 'fileidstr' => $model->detailImageId, 'ruleverify' => $model->ruleVerify]), ], ])->label('商品详情图') ?>