ParamController.php 908 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * paramController.php UTF-8
  4. * WWW
  5. *
  6. * @date : 2018/7/11 12:01
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : chenbingling <cbl@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace api\apple\controller;
  13. use huolib\constant\AppleParamConfusion;
  14. use huolib\constant\AppleRouteConfusion;
  15. use think\Controller;
  16. class ParamController extends Controller {
  17. /***
  18. * 请求参数反转
  19. * 【域名】/a/reversal
  20. */
  21. public function paramsReversal() {
  22. $_confusion = (new AppleParamConfusion())->getReConfusion();
  23. $this->success(lang('SUCCESS'), $_confusion, 200);
  24. }
  25. /***
  26. * 请求路由混淆
  27. * 【域名】/a/reversal
  28. */
  29. public function routeReversal() {
  30. $_route = (new AppleRouteConfusion())->getRoute();
  31. $this->success(lang('SUCCESS'), $_route, 200);
  32. }
  33. }