Info_Task.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace loyalsoft;
  8. /**
  9. * Description of Info_Task
  10. *
  11. * @author c'y'zhao
  12. */
  13. class Info_Task extends Object_ext{
  14. /**
  15. * 任务卡道具(存在叠加)
  16. * @var
  17. */
  18. public $taskcards;
  19. /**
  20. * 任务卡索引
  21. * @var type
  22. */
  23. public $taskIndex = 0;
  24. /**
  25. * 每日任务累计值
  26. * @var type
  27. */
  28. public $dailyTaskAccumulate = 0;
  29. /**
  30. *
  31. * @var type
  32. */
  33. #[ArrayType]
  34. public $dailyTaskAccumulateDrawed = array();
  35. /**
  36. * 周常任务累计值
  37. * @var type
  38. */
  39. public $weekTaskAccumulate = 0;
  40. /**
  41. *
  42. * @var type
  43. */
  44. #[ArrayType]
  45. public $weekTaskAccumulateDrawed = array();
  46. /**
  47. * 成就信息
  48. * @var type
  49. */
  50. public $achieveDic = null;
  51. //------上面全部旧字段
  52. /**
  53. * 活动任务信息
  54. * @var type
  55. */
  56. public $activeTaskInfo = null;
  57. public $activeTaskLength = 0;
  58. /**
  59. * 7日
  60. * @var type
  61. */
  62. public $day7Point = 0;
  63. /**
  64. * 7日活动开始时间
  65. * @var type
  66. */
  67. public $day7_startTs = 0;
  68. /**
  69. * 日常
  70. * @var type
  71. */
  72. public $dailyTaskPoint = 0;
  73. /**
  74. * 周常
  75. * @var type
  76. */
  77. public $weekTaskPoint = 0;
  78. /**
  79. * 活跃点领取记录
  80. * @var type
  81. */
  82. #[ArrayType]
  83. public $activePointReceived = array();
  84. public function initialize() {
  85. //$this->taskcards = new \stdClass();
  86. //$this->achieveDic = new \stdClass();
  87. }
  88. public function __construct($arg = null) {
  89. if ($arg == null) {
  90. $this->taskcards = new \stdClass();
  91. $this->achieveDic = new \stdClass();
  92. $this->activeTaskInfo = new \stdClass();
  93. } else {
  94. parent::__construct($arg);
  95. }
  96. }
  97. }