StorePayChannel.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * Class StorePayChannel
  10. * @package app\models
  11. * @property integer $id
  12. * @property integer $store_id
  13. * @property integer $type
  14. * @property integer $mch_id
  15. *
  16. *
  17. *
  18. **/
  19. class StorePayChannel extends \yii\db\ActiveRecord
  20. {
  21. /**
  22. * @inheritdoc
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%store_pay_channel}}';
  27. }
  28. const TYPE_YSDL = 0;
  29. const TYPE_WECHAT = 1;
  30. const TYPE_ALIPAY = 2;
  31. const TYPE_HUIFU = 3;
  32. const TYPE_YUNST = 4;
  33. /**
  34. * @inheritdoc
  35. */
  36. public function rules()
  37. {
  38. return [
  39. [['id', 'store_id','type','mch_id'], 'integer']
  40. ];
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'id' => "ID",
  49. 'store_id' => "店铺ID",
  50. 'type' => "支付渠道类型",
  51. 'mch_id' => "商户ID",
  52. ];
  53. }
  54. }