xhWxOpen.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhWxOpen".
  5. *
  6. * @property int $id
  7. * @property string $appId 平台appId
  8. * @property string $openName 平台名字
  9. * @property string $appSecret 平台appSecret
  10. * @property int $merchantId 平台绑定的商家id
  11. * @property int $adminId 管理员id
  12. * @property string $token 校验token
  13. * @property string $verifyTicket verify_ticket
  14. * @property string $verifyTicketTime verifyTicket过期时间
  15. * @property string $componentAccessToken access_token
  16. * @property string $componentAccessTokenTime componentAccessToken过期时间
  17. * @property string $aesKey 公众号消息加解密Key
  18. * @property string $preAuthCode pre_auth_code
  19. * @property string $preAuthCodeTime preAuthCode过期时间
  20. * @property string $createTime 创建时间
  21. * @property string $updateTime
  22. */
  23. class xhWxOpen extends xhBaseModel
  24. {
  25. /**
  26. * @inheritdoc
  27. */
  28. public static function tableName()
  29. {
  30. return 'xhWxOpen';
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['merchantId', 'adminId'], 'integer'],
  39. [['verifyTicketTime', 'componentAccessTokenTime', 'preAuthCodeTime', 'createTime'], 'required'],
  40. [['verifyTicketTime', 'componentAccessTokenTime', 'preAuthCodeTime', 'createTime', 'updateTime'], 'safe'],
  41. [['appId', 'appSecret', 'token', 'verifyTicket', 'componentAccessToken', 'aesKey', 'preAuthCode'], 'string', 'max' => 200],
  42. [['openName'], 'string', 'max' => 20],
  43. ];
  44. }
  45. /**
  46. * @inheritdoc
  47. */
  48. public function attributeLabels()
  49. {
  50. return [
  51. 'id' => 'ID',
  52. 'appId' => 'App ID',
  53. 'openName' => 'Open Name',
  54. 'appSecret' => 'App Secret',
  55. 'merchantId' => 'Merchant ID',
  56. 'adminId' => 'Admin ID',
  57. 'token' => 'Token',
  58. 'verifyTicket' => 'Verify Ticket',
  59. 'verifyTicketTime' => 'Verify Ticket Time',
  60. 'componentAccessToken' => 'Component Access Token',
  61. 'componentAccessTokenTime' => 'Component Access Token Time',
  62. 'aesKey' => 'Aes Key',
  63. 'preAuthCode' => 'Pre Auth Code',
  64. 'preAuthCodeTime' => 'Pre Auth Code Time',
  65. 'createTime' => 'Create Time',
  66. 'updateTime' => 'Update Time',
  67. ];
  68. }
  69. }