Day.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  1. <?php
  2. /**
  3. * Day.php UTF-8
  4. * 每日数据
  5. *
  6. * @date : 2018/5/31 11:36
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : wuyonghong <wyh@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace huo\controller\data;
  13. class Day {
  14. protected $date = '';/*日期 */
  15. protected $app_id = 0; /*游戏ID */
  16. protected $agent_id = 0; /*代理ID */
  17. protected $history_user_cnt = 0; /*到当日历史玩家人数 */
  18. protected $active_cnt = 0; /*游戏激活数 */
  19. protected $down_cnt = 0; /*下载数 */
  20. protected $real_down_cnt = 0; /*真实下载数 */
  21. protected $user_cnt = 0; /*活跃玩家数量 */
  22. protected $reg_cnt = 0; /*注册玩家数 */
  23. protected $reg_device_cnt = 0; /*新增设备数 */
  24. protected $pay_user_cnt = 0; /*付费玩家数 */
  25. protected $first_pay_user_cnt = 0; /*首付人数 */
  26. protected $order_cnt = 0; /*成功订单数 */
  27. protected $fail_order_cnt = 0; /*失败订单数 */
  28. protected $un_order_cnt = 0; /*待支付订单数 */
  29. protected $reg_order_cnt = 0; /*注册订单数 */
  30. protected $reg_pay_cnt = 0; /*新增即付费人数 */
  31. protected $sum_money = 0.00; /*充值金额 */
  32. protected $first_pay_money = 0.00; /*首付金额 */
  33. protected $first_pay_sum_money = 0.00; /*首付当日总额 */
  34. protected $reg_sum_money = 0.00; /*新增即付总额 */
  35. protected $day2 = 0; /*二日留存量 */
  36. protected $day3 = 0; /*三日留存量 */
  37. protected $day4 = 0; /*四日留存量 */
  38. protected $day5 = 0; /*五日留存量 */
  39. protected $day6 = 0; /*六日留存量 */
  40. protected $day7 = 0; /*七日留存量 */
  41. protected $day8 = 0; /*八日留存量 */
  42. protected $day9 = 0; /*九日留存量 */
  43. protected $day10 = 0; /*十日留存量 */
  44. protected $day11 = 0; /*11日留存量 */
  45. protected $day12 = 0; /*12日留存量 */
  46. protected $day13 = 0; /*13日留存量 */
  47. protected $day14 = 0; /*14日留存量 */
  48. protected $day15 = 0; /*15日留存量 */
  49. protected $day21 = 0; /*21日留存量 */
  50. protected $day30 = 0; /*30日留存量 */
  51. protected $day60 = 0; /*60日留存量 */
  52. protected $device_day2 = 0; /*二日留存量 */
  53. protected $device_day3 = 0; /*三日留存量 */
  54. protected $device_day4 = 0; /*四日留存量 */
  55. protected $device_day5 = 0; /*五日留存量 */
  56. protected $device_day6 = 0; /*六日留存量 */
  57. protected $device_day7 = 0; /*七日留存量 */
  58. protected $device_day8 = 0; /*八日留存量 */
  59. protected $device_day9 = 0; /*九日留存量 */
  60. protected $device_day10 = 0; /*十日留存量 */
  61. protected $device_day11 = 0; /*11日留存量 */
  62. protected $device_day12 = 0; /*12日留存量 */
  63. protected $device_day13 = 0; /*13日留存量 */
  64. protected $device_day14 = 0; /*14日留存量 */
  65. protected $device_day15 = 0; /*15日留存量 */
  66. protected $device_day21 = 0; /*21日留存量 */
  67. protected $device_day30 = 0; /*30日留存量 */
  68. protected $device_day60 = 0; /*60日留存量 */
  69. protected $retain_day_arr
  70. = ['2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '21',
  71. '30', '60'];
  72. protected $sum_login_cnt = 0; /* 当日登陆总次数 */
  73. public function toArray() {
  74. $_data['date'] = $this->getDate();
  75. $_data['app_id'] = $this->getAppId();
  76. $_data['agent_id'] = $this->getAgentId();
  77. $_data['history_user_cnt'] = $this->getHistoryUserCnt();
  78. $_data['active_cnt'] = $this->getActiveCnt();
  79. $_data['down_cnt'] = $this->getDownCnt();
  80. $_data['real_down_cnt'] = $this->getRealDownCnt();
  81. $_data['user_cnt'] = $this->getUserCnt();
  82. $_data['reg_cnt'] = $this->getRegCnt();
  83. $_data['reg_device_cnt'] = $this->getRegDeviceCnt();
  84. $_data['pay_user_cnt'] = $this->getPayUserCnt();
  85. $_data['first_pay_user_cnt'] = $this->getFirstPayUserCnt();
  86. $_data['order_cnt'] = $this->getOrderCnt();
  87. $_data['fail_order_cnt'] = $this->getFailOrderCnt();
  88. $_data['un_order_cnt'] = $this->getUnOrderCnt();
  89. $_data['reg_order_cnt'] = $this->getRegOrderCnt();
  90. $_data['reg_pay_cnt'] = $this->getRegPayCnt();
  91. $_data['sum_money'] = $this->getSumMoney();
  92. $_data['first_pay_money'] = $this->getFirstPayMoney();
  93. $_data['first_pay_sum_money'] = $this->getFirstPaySumMoney();
  94. $_data['reg_sum_money'] = $this->getRegSumMoney();
  95. $_data['day2'] = $this->getDay2();
  96. $_data['day3'] = $this->getDay3();
  97. $_data['day4'] = $this->getDay4();
  98. $_data['day5'] = $this->getDay5();
  99. $_data['day6'] = $this->getDay6();
  100. $_data['day7'] = $this->getDay7();
  101. $_data['day8'] = $this->getDay8();
  102. $_data['day9'] = $this->getDay9();
  103. $_data['day10'] = $this->getDay10();
  104. $_data['day11'] = $this->getDay11();
  105. $_data['day12'] = $this->getDay12();
  106. $_data['day13'] = $this->getDay13();
  107. $_data['day14'] = $this->getDay14();
  108. $_data['day15'] = $this->getDay15();
  109. $_data['day21'] = $this->getDay21();
  110. $_data['day30'] = $this->getDay30();
  111. $_data['day60'] = $this->getDay60();
  112. $_data['device_day2'] = $this->getDeviceDay2();
  113. $_data['device_day3'] = $this->getDeviceDay3();
  114. $_data['device_day4'] = $this->getDeviceDay4();
  115. $_data['device_day5'] = $this->getDeviceDay5();
  116. $_data['device_day6'] = $this->getDeviceDay6();
  117. $_data['device_day7'] = $this->getDeviceDay7();
  118. $_data['device_day8'] = $this->getDeviceDay8();
  119. $_data['device_day9'] = $this->getDeviceDay9();
  120. $_data['device_day10'] = $this->getDeviceDay10();
  121. $_data['device_day11'] = $this->getDeviceDay11();
  122. $_data['device_day12'] = $this->getDeviceDay12();
  123. $_data['device_day13'] = $this->getDeviceDay13();
  124. $_data['device_day14'] = $this->getDeviceDay14();
  125. $_data['device_day15'] = $this->getDeviceDay15();
  126. $_data['device_day21'] = $this->getDeviceDay21();
  127. $_data['device_day30'] = $this->getDeviceDay30();
  128. $_data['device_day60'] = $this->getDeviceDay60();
  129. $_data['sum_login_cnt'] = $this->getSumLoginCnt();
  130. return $_data;
  131. }
  132. /**
  133. * @return string
  134. */
  135. public function getDate() {
  136. return $this->date;
  137. }
  138. /**
  139. * @param string $date
  140. */
  141. public function setDate($date) {
  142. $this->date = $date;
  143. }
  144. /**
  145. * @return int
  146. */
  147. public function getAppId() {
  148. return $this->app_id;
  149. }
  150. /**
  151. * @param int $app_id
  152. */
  153. public function setAppId($app_id) {
  154. $this->app_id = $app_id;
  155. }
  156. /**
  157. * @return int
  158. */
  159. public function getAgentId() {
  160. return $this->agent_id;
  161. }
  162. /**
  163. * @param int $agent_id
  164. */
  165. public function setAgentId($agent_id) {
  166. $this->agent_id = $agent_id;
  167. }
  168. /**
  169. * @return int
  170. */
  171. public function getHistoryUserCnt() {
  172. return $this->history_user_cnt;
  173. }
  174. /**
  175. * @param int $history_user_cnt
  176. */
  177. public function setHistoryUserCnt($history_user_cnt) {
  178. $this->history_user_cnt = $history_user_cnt;
  179. }
  180. /**
  181. * @return int
  182. */
  183. public function getActiveCnt() {
  184. return $this->active_cnt;
  185. }
  186. /**
  187. * @param int $active_cnt
  188. */
  189. public function setActiveCnt($active_cnt) {
  190. $this->active_cnt = $active_cnt;
  191. }
  192. /**
  193. * @return int
  194. */
  195. public function getDownCnt() {
  196. return $this->down_cnt;
  197. }
  198. /**
  199. * @param int $down_cnt
  200. */
  201. public function setDownCnt($down_cnt) {
  202. $this->down_cnt = $down_cnt;
  203. }
  204. /**
  205. * @return int
  206. */
  207. public function getRealDownCnt() {
  208. return $this->real_down_cnt;
  209. }
  210. /**
  211. * @param int $real_down_cnt
  212. */
  213. public function setRealDownCnt($real_down_cnt) {
  214. $this->real_down_cnt = $real_down_cnt;
  215. }
  216. /**
  217. * @return int
  218. */
  219. public function getUserCnt() {
  220. return $this->user_cnt;
  221. }
  222. /**
  223. * @param int $user_cnt
  224. */
  225. public function setUserCnt($user_cnt) {
  226. $this->user_cnt = $user_cnt;
  227. }
  228. /**
  229. * @return int
  230. */
  231. public function getRegCnt() {
  232. return $this->reg_cnt;
  233. }
  234. /**
  235. * @param int $reg_cnt
  236. */
  237. public function setRegCnt($reg_cnt) {
  238. $this->reg_cnt = $reg_cnt;
  239. }
  240. /**
  241. * @return int
  242. */
  243. public function getRegDeviceCnt() {
  244. return $this->reg_device_cnt;
  245. }
  246. /**
  247. * @param int $reg_device_cnt
  248. */
  249. public function setRegDeviceCnt($reg_device_cnt) {
  250. $this->reg_device_cnt = $reg_device_cnt;
  251. }
  252. /**
  253. * @return int
  254. */
  255. public function getPayUserCnt() {
  256. return $this->pay_user_cnt;
  257. }
  258. /**
  259. * @param int $pay_user_cnt
  260. */
  261. public function setPayUserCnt($pay_user_cnt) {
  262. $this->pay_user_cnt = $pay_user_cnt;
  263. }
  264. /**
  265. * @return int
  266. */
  267. public function getFirstPayUserCnt() {
  268. return $this->first_pay_user_cnt;
  269. }
  270. /**
  271. * @param int $first_pay_user_cnt
  272. */
  273. public function setFirstPayUserCnt($first_pay_user_cnt) {
  274. $this->first_pay_user_cnt = $first_pay_user_cnt;
  275. }
  276. /**
  277. * @return int
  278. */
  279. public function getOrderCnt() {
  280. return $this->order_cnt;
  281. }
  282. /**
  283. * @param int $order_cnt
  284. */
  285. public function setOrderCnt($order_cnt) {
  286. $this->order_cnt = $order_cnt;
  287. }
  288. /**
  289. * @return int
  290. */
  291. public function getFailOrderCnt() {
  292. return $this->fail_order_cnt;
  293. }
  294. /**
  295. * @param int $fail_order_cnt
  296. */
  297. public function setFailOrderCnt($fail_order_cnt) {
  298. $this->fail_order_cnt = $fail_order_cnt;
  299. }
  300. /**
  301. * @return int
  302. */
  303. public function getUnOrderCnt() {
  304. return $this->un_order_cnt;
  305. }
  306. /**
  307. * @param int $un_order_cnt
  308. */
  309. public function setUnOrderCnt($un_order_cnt) {
  310. $this->un_order_cnt = $un_order_cnt;
  311. }
  312. /**
  313. * @return int
  314. */
  315. public function getRegOrderCnt() {
  316. return $this->reg_order_cnt;
  317. }
  318. /**
  319. * @param int $reg_order_cnt
  320. */
  321. public function setRegOrderCnt($reg_order_cnt) {
  322. $this->reg_order_cnt = $reg_order_cnt;
  323. }
  324. /**
  325. * @return int
  326. */
  327. public function getRegPayCnt() {
  328. return $this->reg_pay_cnt;
  329. }
  330. /**
  331. * @param int $reg_pay_cnt
  332. */
  333. public function setRegPayCnt($reg_pay_cnt) {
  334. $this->reg_pay_cnt = $reg_pay_cnt;
  335. }
  336. /**
  337. * @return float
  338. */
  339. public function getSumMoney() {
  340. return $this->sum_money;
  341. }
  342. /**
  343. * @param float $sum_money
  344. */
  345. public function setSumMoney($sum_money) {
  346. $this->sum_money = $sum_money;
  347. }
  348. /**
  349. * @return float
  350. */
  351. public function getFirstPayMoney() {
  352. return $this->first_pay_money;
  353. }
  354. /**
  355. * @param float $first_pay_money
  356. */
  357. public function setFirstPayMoney($first_pay_money) {
  358. $this->first_pay_money = $first_pay_money;
  359. }
  360. /**
  361. * @return float
  362. */
  363. public function getFirstPaySumMoney() {
  364. return $this->first_pay_sum_money;
  365. }
  366. /**
  367. * @param float $first_pay_sum_money
  368. */
  369. public function setFirstPaySumMoney($first_pay_sum_money) {
  370. $this->first_pay_sum_money = $first_pay_sum_money;
  371. }
  372. /**
  373. * @return float
  374. */
  375. public function getRegSumMoney() {
  376. return $this->reg_sum_money;
  377. }
  378. /**
  379. * @param float $reg_sum_money
  380. */
  381. public function setRegSumMoney($reg_sum_money) {
  382. $this->reg_sum_money = $reg_sum_money;
  383. }
  384. /**
  385. * @return int
  386. */
  387. public function getDay2() {
  388. return $this->day2;
  389. }
  390. /**
  391. * @param int $day2
  392. */
  393. public function setDay2($day2) {
  394. $this->day2 = $day2;
  395. }
  396. /**
  397. * @return int
  398. */
  399. public function getDay3() {
  400. return $this->day3;
  401. }
  402. /**
  403. * @param int $day3
  404. */
  405. public function setDay3($day3) {
  406. $this->day3 = $day3;
  407. }
  408. /**
  409. * @return int
  410. */
  411. public function getDay4() {
  412. return $this->day4;
  413. }
  414. /**
  415. * @param int $day4
  416. */
  417. public function setDay4($day4) {
  418. $this->day4 = $day4;
  419. }
  420. /**
  421. * @return int
  422. */
  423. public function getDay5() {
  424. return $this->day5;
  425. }
  426. /**
  427. * @param int $day5
  428. */
  429. public function setDay5($day5) {
  430. $this->day5 = $day5;
  431. }
  432. /**
  433. * @return int
  434. */
  435. public function getDay6() {
  436. return $this->day6;
  437. }
  438. /**
  439. * @param int $day6
  440. */
  441. public function setDay6($day6) {
  442. $this->day6 = $day6;
  443. }
  444. /**
  445. * @return int
  446. */
  447. public function getDay7() {
  448. return $this->day7;
  449. }
  450. /**
  451. * @param int $day7
  452. */
  453. public function setDay7($day7) {
  454. $this->day7 = $day7;
  455. }
  456. /**
  457. * @return int
  458. */
  459. public function getDay8() {
  460. return $this->day8;
  461. }
  462. public function setDay8($day8) {
  463. $this->day8 = $day8;
  464. }
  465. public function getDay9() {
  466. return $this->day9;
  467. }
  468. public function setDay9($day9) {
  469. $this->day9 = $day9;
  470. }
  471. public function getDay10() {
  472. return $this->day10;
  473. }
  474. public function setDay10($day10) {
  475. $this->day10 = $day10;
  476. }
  477. public function getDay11() {
  478. return $this->day11;
  479. }
  480. public function setDay11($day11) {
  481. $this->day11 = $day11;
  482. }
  483. public function getDay12() {
  484. return $this->day12;
  485. }
  486. public function setDay12($day12) {
  487. $this->day12 = $day12;
  488. }
  489. public function getDay13() {
  490. return $this->day13;
  491. }
  492. public function setDay13($day13) {
  493. $this->day13 = $day13;
  494. }
  495. public function getDay14() {
  496. return $this->day14;
  497. }
  498. public function setDay14($day14) {
  499. $this->day14 = $day14;
  500. }
  501. public function getDay15() {
  502. return $this->day15;
  503. }
  504. /**
  505. * @param int $day15
  506. */
  507. public function setDay15($day15) {
  508. $this->day15 = $day15;
  509. }
  510. /**
  511. * @return int
  512. */
  513. public function getDay21() {
  514. return $this->day21;
  515. }
  516. public function setDay21($day21) {
  517. $this->day21 = $day21;
  518. }
  519. public function getDay30() {
  520. return $this->day30;
  521. }
  522. /**
  523. * @param int $day30
  524. */
  525. public function setDay30($day30) {
  526. $this->day30 = $day30;
  527. }
  528. public function getDay60() {
  529. return $this->day60;
  530. }
  531. public function setDay60($day60) {
  532. $this->day60 = $day60;
  533. }
  534. /**
  535. * @return int
  536. */
  537. public function getDeviceDay2() {
  538. return $this->device_day2;
  539. }
  540. /**
  541. * @param int $device_day2
  542. */
  543. public function setDeviceDay2($device_day2) {
  544. $this->device_day2 = $device_day2;
  545. }
  546. /**
  547. * @return int
  548. */
  549. public function getDeviceDay3() {
  550. return $this->device_day3;
  551. }
  552. /**
  553. * @param int $device_day3
  554. */
  555. public function setDeviceDay3($device_day3) {
  556. $this->device_day3 = $device_day3;
  557. }
  558. /**
  559. * @return int
  560. */
  561. public function getDeviceDay4() {
  562. return $this->device_day4;
  563. }
  564. /**
  565. * @param int $device_day4
  566. */
  567. public function setDeviceDay4($device_day4) {
  568. $this->device_day4 = $device_day4;
  569. }
  570. /**
  571. * @return int
  572. */
  573. public function getDeviceDay5() {
  574. return $this->device_day5;
  575. }
  576. /**
  577. * @param int $device_day5
  578. */
  579. public function setDeviceDay5($device_day5) {
  580. $this->device_day5 = $device_day5;
  581. }
  582. /**
  583. * @return int
  584. */
  585. public function getDeviceDay6() {
  586. return $this->device_day6;
  587. }
  588. /**
  589. * @param int $device_day6
  590. */
  591. public function setDeviceDay6($device_day6) {
  592. $this->device_day6 = $device_day6;
  593. }
  594. /**
  595. * @return int
  596. */
  597. public function getDeviceDay7() {
  598. return $this->device_day7;
  599. }
  600. /**
  601. * @param int $device_day7
  602. */
  603. public function setDeviceDay7($device_day7) {
  604. $this->device_day7 = $device_day7;
  605. }
  606. public function getDeviceDay8() {
  607. return $this->device_day8;
  608. }
  609. public function setDeviceDay8($device_day8) {
  610. $this->device_day8 = $device_day8;
  611. }
  612. public function getDeviceDay9() {
  613. return $this->device_day9;
  614. }
  615. public function setDeviceDay9($device_day9) {
  616. $this->device_day9 = $device_day9;
  617. }
  618. public function getDeviceDay10() {
  619. return $this->device_day10;
  620. }
  621. public function setDeviceDay10($device_day10) {
  622. $this->device_day10 = $device_day10;
  623. }
  624. public function getDeviceDay11() {
  625. return $this->device_day11;
  626. }
  627. public function setDeviceDay11($device_day11) {
  628. $this->device_day11 = $device_day11;
  629. }
  630. public function getDeviceDay12() {
  631. return $this->device_day12;
  632. }
  633. public function setDeviceDay12($device_day12) {
  634. $this->device_day12 = $device_day12;
  635. }
  636. public function getDeviceDay13() {
  637. return $this->device_day13;
  638. }
  639. public function setDeviceDay13($device_day13) {
  640. $this->device_day13 = $device_day13;
  641. }
  642. public function getDeviceDay14() {
  643. return $this->device_day14;
  644. }
  645. public function setDeviceDay14($device_day14) {
  646. $this->device_day14 = $device_day14;
  647. }
  648. /**
  649. * @return int
  650. */
  651. public function getDeviceDay15() {
  652. return $this->device_day15;
  653. }
  654. /**
  655. * @param int $device_day15
  656. */
  657. public function setDeviceDay15($device_day15) {
  658. $this->device_day15 = $device_day15;
  659. }
  660. /**
  661. * @return int
  662. */
  663. public function getDeviceDay21() {
  664. return $this->device_day21;
  665. }
  666. public function setDeviceDay21($device_day21) {
  667. $this->device_day21 = $device_day21;
  668. }
  669. public function getDeviceDay30() {
  670. return $this->device_day30;
  671. }
  672. /**
  673. * @param int $device_day30
  674. */
  675. public function setDeviceDay30($device_day30) {
  676. $this->device_day30 = $device_day30;
  677. }
  678. public function getDeviceDay60() {
  679. return $this->device_day60;
  680. }
  681. public function setDeviceDay60($device_day60) {
  682. $this->device_day60 = $device_day60;
  683. }
  684. /**
  685. * @return array
  686. */
  687. public function getRetainDayArr() {
  688. return $this->retain_day_arr;
  689. }
  690. /**
  691. * @param array $retain_day_arr
  692. */
  693. public function setRetainDayArr($retain_day_arr) {
  694. $this->retain_day_arr = $retain_day_arr;
  695. }
  696. /**
  697. * @return int
  698. */
  699. public function getSumLoginCnt() {
  700. return $this->sum_login_cnt;
  701. }
  702. /**
  703. * @param int $sum_login_cnt
  704. */
  705. public function setSumLoginCnt($sum_login_cnt) {
  706. $this->sum_login_cnt = $sum_login_cnt;
  707. }
  708. }