Account.php 969 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace app\abutment\controller;
  3. use app\abutment\logic\Account as AccountLogic;
  4. use think\facade\Config;
  5. use think\facade\Validate;
  6. //供应商账号
  7. class Account extends HomeBaseController
  8. {
  9. //供应商账号登录
  10. // public function login()
  11. // {
  12. //
  13. // $param = $this->request->filter('trim')->only(['mobile', 'password'], 'post');
  14. //
  15. // $val = Validate::rule(Config::get('validate_rules.login'));
  16. //
  17. // if (!$val->check($param)) return json_show(1004, $val->getError());
  18. //
  19. // return AccountLogic::login($param);
  20. // }
  21. //获取用户信息
  22. // public function getUserInfo()
  23. // {
  24. // $param = $this->request->filter('trim')->only(['token'], 'post');
  25. //
  26. // $val = Validate::rule(['token|用户token' => 'require|length:40|alphaNum']);
  27. //
  28. // if (!$val->check($param)) return json_show(1004, $val->getError());
  29. //
  30. // return AccountLogic::getUserInfo($param['token']);
  31. // }
  32. }