ScanCodePaySetting.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\plugins\scanCodePay\models;
  8. use Yii;
  9. use yii\db\ActiveRecord;
  10. /**
  11. * This is the model class for table "{{%scan_code_pay_setting}}".
  12. *
  13. * @property int $id
  14. * @property int $store_id
  15. * @property int $is_scan_code_pay
  16. * @property string $payment_type
  17. * @property int $is_share 是否开启分销
  18. * @property int $is_sms 是否短信提醒
  19. * @property int $is_mail 是否开启邮件提醒
  20. * @property int $is_print 是否开启订单打印
  21. * @property string $poster 自定义海报
  22. * @property int $is_delete
  23. * @property int $price_type
  24. * @property int $first
  25. * @property int $second
  26. * @property int $third
  27. * @property int $mch
  28. * @property int $send_integral
  29. */
  30. class ScanCodePaySetting extends ActiveRecord
  31. {
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public static function tableName()
  36. {
  37. return '{{%scan_code_pay_setting}}';
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function rules()
  43. {
  44. return [
  45. [['store_id', 'payment_type', 'poster'], 'required'],
  46. [['store_id', 'is_scan_code_pay', 'is_share', 'is_delete', 'is_sms', 'is_mail', 'is_print', 'price_type',
  47. 'mch', 'send_integral'], 'integer'],
  48. [['first', 'second', 'third',], 'number'],
  49. [['payment_type', 'poster'], 'string'],
  50. ];
  51. }
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function attributeLabels()
  56. {
  57. return [
  58. 'id' => 'ID',
  59. 'store_id' => 'Store ID',
  60. 'is_scan_code_pay' => 'Is Scan Code Pay',
  61. 'payment_type' => 'Payment Type',
  62. 'is_share' => '是否开启分销',
  63. 'is_sms' => '是否短信提醒',
  64. 'is_mail' => '是否开启邮件提醒',
  65. 'is_print' => '是否开启订单',
  66. 'poster' => '自定义海报',
  67. 'is_delete' => 'Is Delete',
  68. 'price_type' => '佣金类型',
  69. 'first' => '一级佣金',
  70. 'second' => '二级佣金',
  71. 'third' => '三级佣金',
  72. 'mch' => '商户 id',
  73. 'send_integral' => '赠送积分比例',
  74. ];
  75. }
  76. }