UserLockStoreLog.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use app\utils\Notice\NoticeSend;
  9. use yii\behaviors\TimestampBehavior;
  10. /**
  11. * Class StoreAliMini
  12. * @package app\models
  13. * @property integer $id
  14. * @property string $wechat_open_id
  15. * @property string $wechat_platform_open_id
  16. * @property string $ali_openId
  17. * @property string $ali_user_id
  18. * @property integer $store_id
  19. * @property integer $type
  20. * @property integer $saas_id
  21. * @property integer $is_delete
  22. * @property string $created_at
  23. * @property string $updated_at
  24. *
  25. *
  26. **/
  27. class UserLockStoreLog extends \yii\db\ActiveRecord
  28. {
  29. const TYPE_H5 = 0;//h5来源
  30. const TYPE_WX = 1;//微信来源
  31. const TYPE_ALI = 2;//支付宝来源
  32. const TYPE_APP = 3;//APP来源
  33. /**
  34. * @inheritdoc
  35. */
  36. public static function tableName()
  37. {
  38. return '{{%user_lock_store_log}}';
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function rules()
  44. {
  45. return [
  46. [['id', 'store_id', 'type', 'saas_id', 'is_delete'], 'integer'],
  47. [['created_at', 'updated_at', 'wechat_open_id', 'ali_openId', 'ali_user_id', 'wechat_platform_open_id'], 'string']
  48. ];
  49. }
  50. public function behaviors()
  51. {
  52. return [
  53. [
  54. 'class' => TimestampBehavior::class
  55. ]
  56. ];
  57. }
  58. /**
  59. * @inheritdoc
  60. */
  61. public function attributeLabels()
  62. {
  63. return [
  64. 'id' => '',
  65. 'wechat_open_id' => '微信openid',
  66. 'wechat_platform_open_id' => '微信公众号openid',
  67. 'ali_openId' => '支付宝openid',
  68. 'ali_user_id' => '支付宝userid',
  69. 'store_id' => '绑定店铺',
  70. 'type' => '来源:0:h5 1:微信 2:支付宝',
  71. 'saas_id' => '绑定的saas_id',
  72. 'is_delete' => '是否删除',
  73. 'created_at' => '',
  74. 'updated_at' => '',
  75. ];
  76. }
  77. }