| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\plugins\scanCodePay\models;
- use Yii;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%scan_code_pay_setting}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $is_scan_code_pay
- * @property string $payment_type
- * @property int $is_share 是否开启分销
- * @property int $is_sms 是否短信提醒
- * @property int $is_mail 是否开启邮件提醒
- * @property int $is_print 是否开启订单打印
- * @property string $poster 自定义海报
- * @property int $is_delete
- * @property int $price_type
- * @property int $first
- * @property int $second
- * @property int $third
- * @property int $mch
- * @property int $send_integral
- */
- class ScanCodePaySetting extends ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%scan_code_pay_setting}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'payment_type', 'poster'], 'required'],
- [['store_id', 'is_scan_code_pay', 'is_share', 'is_delete', 'is_sms', 'is_mail', 'is_print', 'price_type',
- 'mch', 'send_integral'], 'integer'],
- [['first', 'second', 'third',], 'number'],
- [['payment_type', 'poster'], 'string'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'is_scan_code_pay' => 'Is Scan Code Pay',
- 'payment_type' => 'Payment Type',
- 'is_share' => '是否开启分销',
- 'is_sms' => '是否短信提醒',
- 'is_mail' => '是否开启邮件提醒',
- 'is_print' => '是否开启订单',
- 'poster' => '自定义海报',
- 'is_delete' => 'Is Delete',
- 'price_type' => '佣金类型',
- 'first' => '一级佣金',
- 'second' => '二级佣金',
- 'third' => '三级佣金',
- 'mch' => '商户 id',
- 'send_integral' => '赠送积分比例',
- ];
- }
- }
|