xhMerchantExtend.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhMerchantExtend".
  5. *
  6. * @property int $id
  7. * @property int $merchantId 商户id
  8. * @property int $init 整体初始化 0没有 1有
  9. * @property string $webTitle 站点标题
  10. * @property string $webKeyword 关键词
  11. * @property string $webDescription 站点描述
  12. * @property int $wxMenuInit 微信菜单初始化 0没有 1有
  13. * @property int $wxTMessageInit 模板消息初始化 0没有 1有
  14. * @property int $recharge 充值功能 0没有开启 1开启
  15. * @property int $integral 积分功能默认开启,0表示还可以修改积分相应的等级 1表示不能修改
  16. * @property string $gradeList 积分等级列表
  17. * @property int $giveCoupon 关注是否赠送代金劵 0不赠送 1赠送
  18. * @property string $giveCouponPrice 代金劵金额
  19. * @property string $couponMeetPrice 使用代金劵需要满足金额
  20. * @property int $couponValidity 代金劵有效期
  21. * @property int $payment 支付功能 0没有 1开启
  22. * @property string $wxAppId 微信 appid
  23. * @property string $wxPayMerchantId 微信支付商户id
  24. * @property string $wxPayKey 微信支付密钥
  25. * @property string $alipayPId 支付宝商户id
  26. * @property string $alipayKey 支付宝密钥
  27. * @property string $alipayAccount 支付宝帐号
  28. * @property string $alipayAccountName 支付宝帐户的姓名
  29. * @property string $rrkdKey 人人快递密钥
  30. * @property string $createTime 创建时间
  31. * @property string $updateTime
  32. * @property string $mergeGatheringQrcodeUrl 合并后微信收款二维码
  33. * @property string $mergeGatheringQrcodeUrlAlipay 合并后支付宝收款二维码
  34. * @property tinyint $generalMerchant 是否是普通商户:0:不是(默认);1:是
  35. */
  36. class xhMerchantExtend extends xhBaseModel
  37. {
  38. /**
  39. * @inheritdoc
  40. */
  41. public static function tableName()
  42. {
  43. return 'xhMerchantExtend';
  44. }
  45. /**
  46. * @inheritdoc
  47. */
  48. public function rules()
  49. {
  50. return [
  51. [['merchantId', 'init', 'wxMenuInit', 'wxTMessageInit', 'recharge', 'integral', 'giveCoupon', 'couponValidity', 'payment', 'generalMerchant'], 'integer'],
  52. [['giveCouponPrice', 'couponMeetPrice'], 'number'],
  53. [['createTime'], 'required'],
  54. [['createTime', 'updateTime'], 'safe'],
  55. [['webTitle', 'wxPayMerchantId', 'alipayAccountName'], 'string', 'max' => 20],
  56. [['webKeyword', 'wxAppId','miniAppId', 'alipayKey', 'rrkdKey', 'mergeGatheringQrcodeUrl', 'mergeGatheringQrcodeUrlAlipay'], 'string', 'max' => 100],
  57. [['webDescription', 'gradeList'], 'string', 'max' => 500],
  58. [['wxPayKey', 'alipayPId', 'alipayAccount'], 'string', 'max' => 50],
  59. [['merchantId'], 'unique'],
  60. ];
  61. }
  62. /**
  63. * @inheritdoc
  64. */
  65. public function attributeLabels()
  66. {
  67. return [
  68. 'id' => 'ID',
  69. 'merchantId' => 'Merchant ID',
  70. 'init' => 'Init',
  71. 'webTitle' => 'Web Title',
  72. 'webKeyword' => 'Web Keyword',
  73. 'webDescription' => 'Web Description',
  74. 'wxMenuInit' => 'Wx Menu Init',
  75. 'wxTMessageInit' => 'Wx Tmessage Init',
  76. 'recharge' => 'Recharge',
  77. 'integral' => 'Integral',
  78. 'gradeList' => 'Grade List',
  79. 'giveCoupon' => 'Give Coupon',
  80. 'giveCouponPrice' => 'Give Coupon Price',
  81. 'couponMeetPrice' => 'Coupon Meet Price',
  82. 'couponValidity' => 'Coupon Validity',
  83. 'payment' => 'Payment',
  84. 'wxAppId' => 'Wx App ID',
  85. 'miniAppId' => 'miniAppId',
  86. 'wxPayMerchantId' => 'Wx Pay Merchant ID',
  87. 'wxPayKey' => 'Wx Pay Key',
  88. 'alipayPId' => 'Alipay Pid',
  89. 'alipayKey' => 'Alipay Key',
  90. 'alipayAccount' => 'Alipay Account',
  91. 'alipayAccountName' => 'Alipay Account Name',
  92. 'rrkdKey' => 'Rrkd Key',
  93. 'createTime' => 'Create Time',
  94. 'updateTime' => 'Update Time',
  95. 'mergeGatheringQrcodeUrl' => 'Merge Gathering Qrcode Url',
  96. 'mergeGatheringQrcodeUrlAlipay' => 'Merge Gathering Qrcode Url Alipay',
  97. 'generalMerchant' => 'General Merchant',
  98. ];
  99. }
  100. }