test.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace loyalsoft;
  3. include __DIR__ . '/main.php';
  4. echoLine("phpver: " . PHP_VERSION . PHP_EOL);
  5. //SelfChecker::CheckAll();
  6. //
  7. //set_time_limit(15); # 设置执行超时时间
  8. //
  9. //
  10. echo number_format(1.0125, 2, '.', '');
  11. //$arr = GameConfig::plot_getItem(1001, 0); # 查找对应的剧情
  12. //var_dump($arr);
  13. //foreach ($arr as $plot) {
  14. // isEditor() and $plot = new \sm_plot();
  15. // var_dump($plot);
  16. //}
  17. $i = 9;
  18. var_dump($i++);
  19. var_dump($i);
  20. $user = ObjectInit();
  21. $user->name = "wg";
  22. class A {
  23. public $B = "王刚";
  24. function &B() {
  25. echoLine(__FUNCTION__);
  26. echoLine(__METHOD__);
  27. $name = __FUNCTION__;
  28. echoLine($this->$name);
  29. echoLine(nameof($this->B));
  30. return $this->B;
  31. }
  32. }
  33. $tabName = 'tab_guild';
  34. $ret = GuildProc::getMemUserGuildInfo("gw", 1);
  35. $keywords = "";
  36. var_dump(strlen($keywords));
  37. //
  38. //$sqlret = daoInst()->select()->from($tabName)
  39. // ->where("`zoneid`=$zoneid and (`guildId`='$keywords' OR `name` like '%$keywords%')")
  40. // ->limit(10)->fetchAll();
  41. ////var_dump($sqlret);
  42. //$startIndex = 8;
  43. //$dbret = daoInst()->select()->from(GuildProc::tabGuild)
  44. // ->where('zoneid')->eq($zoneid)
  45. // ->limit("$startIndex ,20")
  46. // ->fetchAll();
  47. //var_dump($dbret);
  48. //Err(1005);
  49. //var_dump(Resp::err(3503, "时尚杂志opencv"));