AliMiniSign.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * This is the model class for table "{{%ali_mini_sign}}".
  10. *
  11. * @property int $id
  12. * @property int $type
  13. * @property string $batch_no
  14. * @property int $batch_status
  15. * @property int $ali_mini_id
  16. * @property string $fail_reason
  17. * @property string $batch_url
  18. * @property int $app_type
  19. */
  20. class AliMiniSign extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * @inheritdoc
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%ali_mini_sign}}';
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [["id", "type", "batch_status", "ali_mini_id", 'app_type'], 'integer'],
  36. [["batch_no", "fail_reason", "batch_url"], 'string'],
  37. ];
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public function attributeLabels()
  43. {
  44. return [
  45. 'id' => "",
  46. 'type' => "类型 0当面付 1商家分账 2App支付",
  47. 'batch_no' => "编号",
  48. 'batch_status' => "事务状态 0未创建 1已经创建 2已签约 3审核中 4异常单 5 待确认 6确认成功 7超时未确认 8审核失败",
  49. 'ali_mini_id' => "",
  50. 'fail_reason' => "错误信息",
  51. 'batch_url' => "签约链接",
  52. 'app_type' => '支付宝应用类型 0小程序 1应用'
  53. ];
  54. }
  55. }