Index.php 504 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\master\controller;
  3. use think\Controller;
  4. use app\master\logic\Index as Logic;
  5. use think\Log;
  6. class Index extends Base
  7. {
  8. public function getStat()
  9. {
  10. $function = __FUNCTION__;
  11. return json($this->logic->$function());
  12. }
  13. public function getCangList() {
  14. $function = __FUNCTION__;
  15. return json($this->logic->$function());
  16. }
  17. public $logic;
  18. public function __initialize() {
  19. $this->logic = new Logic($this->request);
  20. }
  21. }