User.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. namespace app\mobile\controller;
  3. use app\mobile\logic\User as Logic;
  4. use think\Log;
  5. class User extends Base
  6. {
  7. public function checkUserByMobile() {
  8. $function = __FUNCTION__;
  9. return json($this->logic->$function());
  10. }
  11. public function registerSendMobileCode() {
  12. $function = __FUNCTION__;
  13. return json($this->logic->$function());
  14. }
  15. public function loginByPassword()
  16. {
  17. $function = __FUNCTION__;
  18. return json($this->logic->$function());
  19. }
  20. public function loginByMobileCode()
  21. {
  22. $function = __FUNCTION__;
  23. return json($this->logic->$function());
  24. }
  25. public function register() {
  26. $function = __FUNCTION__;
  27. return json($this->logic->$function());
  28. }
  29. public function LoginSendMobileCode()
  30. {
  31. $function = __FUNCTION__;
  32. return json($this->logic->$function());
  33. }
  34. public function resetPassword()
  35. {
  36. $function = __FUNCTION__;
  37. return json($this->logic->$function());
  38. }
  39. //充值接口
  40. public function recharge()
  41. {
  42. $function = __FUNCTION__;
  43. return json($this->logic->$function());
  44. }
  45. //验证接口
  46. public function checkInfo()
  47. {
  48. $function = __FUNCTION__;
  49. return json($this->logic->$function());
  50. }
  51. public function checkInfoSendMobileCode()
  52. {
  53. $function = __FUNCTION__;
  54. return json($this->logic->$function());
  55. }
  56. public function getUserBankList()
  57. {
  58. $function = __FUNCTION__;
  59. return json($this->logic->$function());
  60. }
  61. public function getUserHongbaoList() {
  62. $function = __FUNCTION__;
  63. return json($this->logic->$function());
  64. }
  65. public function getUserInfo() {
  66. $function = __FUNCTION__;
  67. return json($this->logic->$function());
  68. }
  69. public function getUserFinanceList() {
  70. $function = __FUNCTION__;
  71. return json($this->logic->$function());
  72. }
  73. public function logout() {
  74. $function = __FUNCTION__;
  75. return json($this->logic->$function());
  76. }
  77. public $logic;
  78. public function __initialize() {
  79. $this->logic = new Logic($this->request);
  80. }
  81. }