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('商品详情图') ?>