debug_run.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. printf("Content-Type: text/html; charset=UTF-8\r\n\r\n");
  3. $reqs = array();
  4. //$reqs['index'] = 'http://localhost:8080/';
  5. //$reqs['index'] ='http://localhost:8080/mobile/index.php?act=index&op=index';
  6. //$reqs['login_register'] ='http://localhost:8080/mobile/index.php?act=login&op=register&username=stanley&password=55668899&password_confirm=55668899';
  7. //$reqs['login_genanonymous'] ='http://localhost:.
  8. //mobile/index.php?act=login&op=genuser&info=helloworld&type=1&client=android';
  9. //$reqs['login_genwx'] ='http://localhost:8080/mobile/index.php?act=login&op=genuser&type=2&openid=123456789000&client=android';
  10. //$reqs['login_anonymous_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&openid=561f708422817&type=1&client=android';
  11. //$reqs['login_wx_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&openid=123456789000&type=2&client=android';
  12. //$reqs['login_mobile_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&mobile=18022196345&password=55668899&type=0&client=android';
  13. //$reqs['login_wx_getinfo'] ='http://localhost:8080/mobile/index.php?act=login&op=getinfo&token=08a6a71c051bc5be33f85141f3ca6b52';
  14. //$reqs['login_wx_getcode'] ='http://localhost:8080/mobile/index.php?act=login&op=getcode&token=fe22e0bc1c2e776b3dc22374fc96b0af&mobile=13911129867';
  15. //$reqs['login_wx_checkcode'] ='http://localhost:8080/mobile/index.php?act=login&op=checkcode&token=08a6a71c051bc5be33f85141f3ca6b52&code=0369';
  16. //$reqs['login_wx_bind'] ='http://localhost:8080/mobile/index.php?act=login&op=bind&token=fe22e0bc1c2e776b3dc22374fc96b0af&code=2578&password=55668899&type=mobile';
  17. $reqs['login_wx_bind'] = 'http://localhost/mobile/index.php?act=goods&op=goods_list&page=10&curpage=1';
  18. foreach ($reqs as $key => $uri)
  19. {
  20. define('StartTime', microtime(true));
  21. define('TIMESTAMP', time());
  22. $lreq = new local_request($uri);
  23. init_localreq($lreq);
  24. $file = $lreq->script_file();
  25. if(is_file($file)) {
  26. include $file;
  27. } else {
  28. echo 'no such file';
  29. }
  30. }