ShopSetting.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%shop_setting}}".
  11. *
  12. * @property integer $id
  13. * @property string $first
  14. * @property string $second
  15. * @property string $third
  16. * @property int $store_id
  17. * @property int $level
  18. * @property int $condition
  19. * @property int $share_condition
  20. * @property string $content
  21. * @property integer $pay_type
  22. * @property integer $min_money
  23. * @property string $agree
  24. * @property string $first_name
  25. * @property string $second_name
  26. * @property string $third_name
  27. * @property string $pic_url_1
  28. * @property string $pic_url_2
  29. * @property integer $price_type
  30. * @property integer $bank
  31. * @property integer $remaining_sum
  32. * @property string $rebate
  33. * @property integer $is_rebate
  34. */
  35. class ShopSetting extends \yii\db\ActiveRecord
  36. {
  37. /**
  38. * @inheritdoc
  39. */
  40. public static function tableName()
  41. {
  42. return '{{%shop_setting}}';
  43. }
  44. /**
  45. * @inheritdoc
  46. */
  47. public function rules()
  48. {
  49. return [
  50. [['first', 'second', 'third', 'min_money', 'rebate'], 'number'],
  51. [['store_id', 'level', 'condition', 'share_condition', 'pay_type', 'price_type', 'bank', 'remaining_sum', 'is_rebate'], 'integer'],
  52. [['content', 'agree', 'pic_url_1', 'pic_url_2'], 'string'],
  53. [['first_name', 'second_name', 'third_name'], 'string', 'max' => 255],
  54. ];
  55. }
  56. /**
  57. * @inheritdoc
  58. */
  59. public function attributeLabels()
  60. {
  61. return [
  62. 'id' => 'ID',
  63. 'first' => 'First',
  64. 'second' => 'Second',
  65. 'third' => 'Third',
  66. 'store_id' => '商城id',
  67. 'level' => '分销层级 0--不开启 1--一级分销 2--二级分销 3--三级分销',
  68. 'condition' => '成为下线条件 0--首次点击分享链接 1--首次下单 2--首次付款',
  69. 'share_condition' => '成为分销商的条件 0--无条件(需要审核) 1--申请(需要审核) 2--无需审核 3--后台指定',
  70. 'content'=>'分销佣金 的 用户须知',
  71. 'pay_type'=>'提现方式 0--微信企业支付 1--支付宝转账',
  72. 'min_money'=>'最小提现额度',
  73. 'agree'=>'分销协议',
  74. 'first_name' => '一级名称',
  75. 'second_name' => '二级名称',
  76. 'third_name' => '三级名称',
  77. 'pic_url_1' => 'Pic Url 1',
  78. 'pic_url_2' => 'Pic Url 2',
  79. 'price_type' => '分销金额 0--百分比金额 1--固定金额',
  80. 'bank' => 'Bank',
  81. 'remaining_sum' => '余额提现',
  82. 'rebate' => '分销返利',
  83. 'is_rebate' => '是否开启自购返利',
  84. ];
  85. }
  86. }