Info_UserSecretshop.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 玩家神秘商城数据
  5. * @version
  6. * 1.0.0 Created at 2017-10-21. by --gwang
  7. * @author gwang (mail@wanggangzero.cn)
  8. * @copyright ? 2017-10-21, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  9. */
  10. class Info_UserSecretshop extends Object_ext
  11. {
  12. /**
  13. * @var object {itemid:cishu,itemid:cishu,...} 当前商品列表
  14. */
  15. public $currentItems;
  16. /**
  17. * @var int 上次刷新时间戳
  18. */
  19. public $lastRefreshTs = 0;
  20. /**
  21. * @var int 当天付费刷新次数
  22. */
  23. public $refreshedTimes = 0;
  24. /**
  25. * 构造函数,能够智能提取关联数组或者是object中的字段进行初始化.
  26. * Ps. 不会进行递归类型检查, php的serilize函数也没有附带字段的类型信息
  27. */
  28. function __construct($arg = null)
  29. {
  30. if (func_num_args() == 1 && !is_null($arg)) {
  31. parent::__construct($arg);
  32. }
  33. if (is_null($this->currentItems)) {
  34. $this->currentItems = ObjectInit();
  35. }
  36. }
  37. }