255], [['copyright_pic_url', 'copyright_url'], 'string', 'max' => 1000], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'admin_id' => 'Admin ID', 'is_delete' => 'Is Delete', 'is_recycle' => '回收站:0=否,1=是', 'acid' => '微擎公众号id', 'user_id' => '用户id', 'wechat_platform_id' => '微信公众号id', 'wechat_app_id' => '微信小程序id', 'name' => '店铺名称', 'order_send_tpl' => '发货通知模板消息id', 'contact_tel' => '联系电话', 'show_customer_service' => '是否显示在线客服:0=否,1=是', 'copyright' => 'Copyright', 'copyright_pic_url' => 'Copyright Pic Url', 'copyright_url' => '版权的超链接', 'delivery_time' => '收货时间', 'after_sale_time' => '售后时间', 'use_wechat_platform_pay' => '是否使用公众号支付:0=否,1=是', 'kdniao_mch_id' => '快递鸟商户号', 'kdniao_api_key' => '快递鸟api key', 'cat_style' => '分类页面样式:1=无侧栏,2=有侧栏', 'cut_thread' => '分类分割线 0关闭 1开启', 'home_page_module' => '首页模块布局', 'address' => '店铺地址', 'cat_goods_cols' => '首页分类商品列数', 'over_day' => '未支付订单超时时间', 'is_offline' => '是否开启自提', 'is_coupon' => '是否开启优惠券', 'cat_goods_count' => '首页分类的商品个数', 'send_type' => '发货方式:0=快递或自提,1=仅快递,2=仅自提', 'member_content' => '会员等级说明', 'nav_count' => '首页导航栏个数 0--4个 1--5个', 'integral' => '一元抵多少积分', 'integration' => '积分使用说明', 'dial' => '一键拨号开关 0关闭 1开启', 'dial_pic' => '拨号图标', 'purchase_frame' => 'Purchase Frame', 'is_recommend' => '推荐商品状态 1:开启 0 :关闭', 'recommend_count' => '推荐商品数量', 'status' => '商城禁用状态 0.未禁用|1.禁用', 'is_comment' => '商城评价开关:0.关闭 1.开启', 'is_sales' => '商城商品销量开关:0.关闭 1.开启', 'buy_member' => '购买会员', ]; } public function beforeSave($insert) { if ($this->over_day === null || $this->over_day === '') { $this->over_day = 0; } return parent::beforeSave($insert); } public function afterSave($insert, $changedAttributes) { $data = $insert ? json_encode($this->attributes) : json_encode($changedAttributes); CommonActionLog::storeActionLog('', $insert, $this->is_delete, $data, $this->id); } }