WeChatSharerOrder.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\behaviors\TimestampBehavior;
  9. /**
  10. * Class StoreMini
  11. * @package app\models
  12. * @property integer $id
  13. * @property string $order_id
  14. * @property integer $sku_id
  15. * @property string $created_at
  16. * @property string $updated_at
  17. * @property integer $store_id
  18. * @property string $sharer_appid
  19. * @property integer $status
  20. * @property integer $order_create_time
  21. * @property integer $pay_time
  22. * @property integer $order_update_time
  23. * @property integer $commission_order_status
  24. * @property string $product_info
  25. * @property string $order_info
  26. * @property string $commission_info
  27. * @property string $buyer_info
  28. * @property string $union_id
  29. * @property string $shop_appid
  30. * @property string $shop_name
  31. * @property string $actual_payment
  32. * @property string $product_title
  33. **/
  34. class WeChatSharerOrder extends \yii\db\ActiveRecord
  35. {
  36. /**
  37. * @var mixed|null
  38. */
  39. public $mini_info;
  40. /**
  41. * @inheritdoc
  42. */
  43. public static function tableName()
  44. {
  45. return '{{%wechat_sharer_order}}';
  46. }
  47. /**
  48. * @inheritdoc
  49. */
  50. public function rules()
  51. {
  52. return [
  53. [["order_update_time", "order_create_time",'id', 'sku_id', 'store_id', 'status', 'commission_order_status', "pay_time"], 'integer'],
  54. [[ "product_info",'order_info', 'commission_info', 'buyer_info', 'union_id', 'sharer_appid'], 'string'],
  55. [['created_at', 'updated_at'], 'safe']
  56. ];
  57. }
  58. public function behaviors()
  59. {
  60. return [
  61. [
  62. 'class' => TimestampBehavior::class,
  63. ]
  64. ];
  65. }
  66. /**
  67. * @inheritdoc
  68. */
  69. public function attributeLabels()
  70. {
  71. return [
  72. 'id' => "ID",
  73. 'order_id' => "联盟机构订单号",
  74. 'sku_id' => "商品skuid",
  75. 'store_id' => "商城ID",
  76. 'status' => "订单状态",
  77. 'order_create_time' => "订单创建时间",
  78. 'pay_time' => "订单支付时间",
  79. 'order_update_time' => "订单更新时间",
  80. 'commission_order_status' => "佣金单状态",
  81. "product_info" => "佣金单商品信息",
  82. "order_info" => "订单信息",
  83. "commission_info" => "分佣信息",
  84. "buyer_info" => "买家信息",
  85. "union_id" => "用户unionid",
  86. ];
  87. }
  88. }