debug_run.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:8080/mobile/index.php?act=login&op=genuser&info=helloworld&type=1&client=android';
  8. //$reqs['login_genwx'] ='http://localhost:8080/mobile/index.php?act=login&op=genuser&type=2&openid=123456789000&client=android';
  9. //$reqs['login_anonymous_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&openid=561f708422817&type=1&client=android';
  10. //$reqs['login_wx_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&openid=123456789000&type=2&client=android';
  11. //$reqs['login_mobile_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&mobile=18022196345&password=55668899&type=0&client=android';
  12. //$reqs['login_wx_getinfo'] ='http://localhost:8080/mobile/index.php?act=login&op=getinfo&token=08a6a71c051bc5be33f85141f3ca6b52';
  13. //$reqs['login_wx_getcode'] ='http://localhost:8080/mobile/index.php?act=login&op=getcode&token=fe22e0bc1c2e776b3dc22374fc96b0af&mobile=13911129867';
  14. //$reqs['login_wx_checkcode'] ='http://localhost:8080/mobile/index.php?act=login&op=checkcode&token=08a6a71c051bc5be33f85141f3ca6b52&code=0369';
  15. //$reqs['login_wx_bind'] ='http://localhost:8080/mobile/index.php?act=login&op=bind&token=fe22e0bc1c2e776b3dc22374fc96b0af&code=2578&password=55668899&type=mobile';
  16. foreach ($reqs as $key => $uri)
  17. {
  18. define('StartTime', microtime(true));
  19. define('TIMESTAMP', time());
  20. $lreq = new local_request($uri);
  21. init_localreq($lreq);
  22. $file = $lreq->script_file();
  23. if(is_file($file)) {
  24. include $file;
  25. } else {
  26. echo 'no such file';
  27. }
  28. }