Index.php 364 B

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