StoreAliMini.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * Class StoreAliMini
  10. * @package app\models
  11. * @property integer $id
  12. * @property integer $store_id
  13. * @property string $auth_code
  14. * @property string $auth_token
  15. * @property string $userid
  16. * @property integer $is_cancel
  17. * @property string $auth_app_id
  18. * @property string $refresh_token
  19. * @property string $aes_key
  20. * @property integer $is_merchant
  21. * @property string $license_no
  22. * @property string $license_pic
  23. * @property string $app_name
  24. * @property string $app_english_name
  25. * @property string $app_slogan
  26. * @property string $app_logo
  27. * @property string $app_desc
  28. * @property string $service_phone
  29. * @property string $service_email
  30. * @property string $mini_categoryIds
  31. * @property string $license_name
  32. * @property string $license_date
  33. * @property string $category_name
  34. * @property integer $is_long_effective
  35. * @property string $alipay_account
  36. * @property string $legal_personal_name
  37. * @property string $contact_name
  38. * @property string $order_no
  39. * @property string $order_no_ali
  40. * @property integer $order_cancel
  41. * @property integer $category_data
  42. * @property string $batch_no
  43. * @property integer $batch_status
  44. * @property string $store_face_photo
  45. * @property integer $is_get_phone
  46. * @property string $apply_phone_msg
  47. * @property string $apply_phone_fail
  48. * @property string $other_data
  49. * @property integer $is_use
  50. * @property integer $shop_status
  51. * @property integer $bind_food_qr
  52. *
  53. *
  54. *
  55. **/
  56. class StoreAliMini extends \yii\db\ActiveRecord
  57. {
  58. /**
  59. * @inheritdoc
  60. */
  61. public static function tableName()
  62. {
  63. return '{{%store_ali_mini}}';
  64. }
  65. /**
  66. * @inheritdoc
  67. */
  68. public function rules()
  69. {
  70. return [
  71. [['id', 'store_id','is_cancel','is_merchant','is_long_effective','order_cancel',"batch_status",'is_get_phone', 'is_use', 'shop_status', 'bind_food_qr'], 'integer'],
  72. [['order_no', 'order_no_ali','category_name','auth_code','auth_token','userid', "auth_app_id","refresh_token","aes_key","license_no","license_pic",
  73. "app_name","app_english_name","app_slogan","app_logo","app_desc","service_phone","service_email","mini_categoryIds","license_name",'license_date'
  74. ,"alipay_account","legal_personal_name","contact_name","category_data","batch_no","store_face_photo",'apply_phone_msg','apply_phone_fail', 'other_data'
  75. ], 'string'],
  76. ];
  77. }
  78. /**
  79. * @inheritdoc
  80. */
  81. public function attributeLabels()
  82. {
  83. return [
  84. 'id' => "ID",
  85. 'store_id' => "商户ID",
  86. 'auth_code' => "授权码",
  87. 'auth_token' => "令牌token",
  88. 'auth_app_id' => "小程序ID",
  89. 'userid' => "授权商户ID",
  90. 'is_cancel' => "是否取消授权",
  91. "refresh_token"=> "刷新令牌",
  92. "aes_key"=> "授权应用aes密钥",
  93. "is_merchant"=> "是否为商户",
  94. "license_no"=> "营业执照编号",
  95. "license_pic"=> "营业执照",
  96. "app_name"=> "小程序名称",
  97. "app_english_name"=> "小程序英文名称",
  98. "app_slogan"=> "小程序应用简介",
  99. "app_logo"=> "小程序LOGO",
  100. "app_desc"=> "小程序应用描述",
  101. "service_phone"=> "客服手机号",
  102. "service_email"=> "客服邮箱",
  103. "mini_categoryIds"=> "分类ID",
  104. "license_name"=> "营业执照名称",
  105. "license_date"=> "有效期",
  106. "category_name"=> "分类名称",
  107. "is_long_effective"=> "是否长期有效",
  108. "alipay_account"=> "商家支付宝账户",
  109. "legal_personal_name"=> "商家法人名称",
  110. "contact_name"=> "商家联系人名称",
  111. "order_no"=> "订单号",
  112. "order_no_ali"=> "订单号",
  113. "order_cancel"=> "订单是否取消",
  114. "category_data"=> "分类数据",
  115. "batch_no"=> "事务编号",
  116. "batch_status"=> "事务状态",
  117. "store_face_photo"=> "门头照",
  118. "is_get_phone"=> "获取手机号权限状态",
  119. "apply_phone_msg"=> "申请手机号信息资料",
  120. "apply_phone_fail"=> "申请手机号失败信息",
  121. 'other_data'=> "其他申请资料",
  122. 'is_use' => "是否使用",
  123. 'shop_status'=> "门店申请状态 0未审核 1审核中 2完成 3拒绝",
  124. 'bind_food_qr' => "是否绑定点餐码"
  125. ];
  126. }
  127. public function getVersion(){
  128. return $this->hasOne(StoreAliMiniVersion::className(),['id'=>'mini_id'])->orderBy('create_time desc');
  129. }
  130. }