Master.php 508 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\master\controller;
  3. use app\master\logic\Master as Logic;
  4. class Master extends Base
  5. {
  6. //得到产品类型
  7. public function loginByPassword() {
  8. $function = __FUNCTION__;
  9. return json($this->logic->$function());
  10. }
  11. //登出
  12. public function logout() {
  13. $function = __FUNCTION__;
  14. return json($this->logic->$function());
  15. }
  16. public $logic;
  17. public function __initialize() {
  18. $this->logic = new Logic($this->request);
  19. }
  20. }