From 35ffe88e719697ef22011128128262809c05d14e Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Fri, 20 Dec 2019 09:03:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=88=9B=E5=BB=BA=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../models/ars/WxPublicAccountConfig.php | 32 ++++--------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/backend/modules/wx_public_account/models/ars/WxPublicAccountConfig.php b/backend/modules/wx_public_account/models/ars/WxPublicAccountConfig.php index f3d34d1..3cb50ac 100644 --- a/backend/modules/wx_public_account/models/ars/WxPublicAccountConfig.php +++ b/backend/modules/wx_public_account/models/ars/WxPublicAccountConfig.php @@ -3,21 +3,17 @@ namespace backend\modules\wx_public_account\models\ars; -use yii\behaviors\TimestampBehavior; use yii\redis\ActiveRecord; /** - * Class WxPayConfig - * @package backend\modules\shop\models\ars + * Class WxPublicAccountConfig + * @package backend\modules\wx_public_account\models\ars * @property int $id * @property int $user_id 用户id - * @property int $mch_id 商户号 - * @property string $key 支付秘钥 - * @property string $cert_path cert文件路径 - * @property string $key_path key文件路径 + * @property int $menu_setting 自定义菜单 */ -class WxPayConfig extends ActiveRecord +class WxPublicAccountConfig extends ActiveRecord { /** * 主键 默认为 id @@ -36,28 +32,12 @@ class WxPayConfig extends ActiveRecord */ public function attributes() { - return ['id', 'user_id', 'mch_id', 'key', 'cert_path', 'key_path', 'created_at', 'updated_at']; + return ['id', 'user_id', 'menu_setting']; } - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ public function behaviors() { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function () { - return time(); - }, - ], - ]; + return parent::behaviors(); // TODO: Change the autogenerated stub } } \ No newline at end of file