Login.php 561 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xurongyao <763569752@qq.com>
  5. * Date: 2019/4/8 7:29 PM
  6. */
  7. namespace app\core\logic;
  8. use app\core\traits\LogicTrait;
  9. use service\JsonService;
  10. class Login
  11. {
  12. use LogicTrait;
  13. protected $providers=[
  14. \app\core\logic\routine\RoutineLogin::class,
  15. ];
  16. public static function login_ing($action)
  17. {
  18. if($action instanceof Login){
  19. return self::instance()->$action->login();
  20. }else{
  21. return JsonService::fail('访问的方法不存在!');
  22. }
  23. }
  24. }