TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'] ] ] ]; } public function rules() { return [ [ ['store_id'], 'required' ], [ [ 'store_id', 'change_shop', 'pay_wechat', 'pay_alipay', 'pay_bank', 'pay_remaining', 'created_at', 'updated_at', 'is_delete' ], 'integer' ], [ [ 'pay_alipay', 'pay_bank', 'pay_remaining', 'updated_at', 'is_delete' ], 'default', 'value' => 0 ], [ [ 'pay_wechat', 'change_shop' ], 'default', 'value' => 1 ], [ [ 'min_money', 'cash_max_day', 'cash_max_single_day', 'cash_service_charge' ], 'number' ], [ [ 'min_money', 'cash_max_day', 'cash_max_single_day', 'cash_service_charge' ], 'default', 'value' => 0 ] ]; } public function attributeLabels() { return [ 'store_id' => '商城ID', 'change_shop' => '门店切换', 'pay_wechat' => '微信提现', 'pay_alipay' => '支付宝提现', 'pay_bank' => '银行卡提现', 'pay_remaining' => '余额提现', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'is_delete' => '删除时间', 'min_money' => '每次最小提现金额', 'cash_max_day' => '每天提现金额', 'cash_max_single_day' => '没人单日提现金额', 'cash_service_charge' => '提现手续费' ]; } }