ApproachOrderCall.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. namespace common\models;
  3. use common\components\MongoActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for collection "ar_approach_order_call".
  7. *
  8. * @property \MongoDB\BSON\ObjectID|string $_id
  9. * @property mixed $user_name
  10. * @property mixed $opt_type
  11. * @property mixed $return_result
  12. * @property mixed $success_times
  13. * @property mixed $fail_times
  14. * @property mixed $device
  15. * @property mixed $request_route
  16. * @property mixed $ip
  17. * @property mixed $created_at
  18. * @property mixed $user_agent
  19. * @property mixed $period_num
  20. */
  21. class ApproachOrderCall extends MongoActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function collectionName()
  27. {
  28. return 'ar_approach_order_call';
  29. }
  30. /**
  31. * @return \yii\mongodb\Connection the MongoDB connection used by this AR class.
  32. */
  33. public static function getDb()
  34. {
  35. return Yii::$app->get('dbLog');
  36. }
  37. /**
  38. * 获取id
  39. * @return string
  40. */
  41. public function getId() {
  42. return (string) $this->_id;
  43. }
  44. /**
  45. * {@inheritdoc}
  46. */
  47. public function attributes()
  48. {
  49. return [
  50. 'id',
  51. 'domain',
  52. 'status',
  53. 'reference',
  54. 'amount',
  55. 'created_at',
  56. 'paid_at',
  57. 'channel',
  58. 'currency',
  59. 'ip_address',
  60. 'metadata',
  61. 'return_result',
  62. 'customer',
  63. 'email',
  64. ];
  65. }
  66. /**
  67. * {@inheritdoc}
  68. */
  69. public function attributeLabels()
  70. {
  71. return [
  72. 'id' => 'PayID',
  73. 'domain' => 'domain',
  74. 'status' => 'status',
  75. 'reference' => 'reference',
  76. 'amount' => 'amount(kobo)',
  77. 'created_at' => 'created_at',
  78. 'paid_at' => 'paid_at',
  79. 'channel' => 'channel',
  80. 'currency' => 'currency',
  81. 'ip_address' => 'ip_address',
  82. 'metadata' => 'metadata',
  83. 'return_result' => 'return_result',
  84. 'customer' => 'customer',
  85. 'email' => 'email',
  86. ];
  87. }
  88. }