User.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. // +—————————————————————————————————————————————————————————————————————
  3. // | Created by Yunbao
  4. // +—————————————————————————————————————————————————————————————————————
  5. // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
  6. // +—————————————————————————————————————————————————————————————————————
  7. // | Author: https://gitee.com/yunbaokeji
  8. // +—————————————————————————————————————————————————————————————————————
  9. // | Date: 2022-02-17
  10. // +—————————————————————————————————————————————————————————————————————
  11. class Domain_User {
  12. public function getBaseInfo($userId) {
  13. $rs = array();
  14. $model = new Model_User();
  15. $rs = $model->getBaseInfo($userId);
  16. return $rs;
  17. }
  18. public function checkName($uid,$name) {
  19. $rs = array();
  20. $model = new Model_User();
  21. $rs = $model->checkName($uid,$name);
  22. return $rs;
  23. }
  24. public function userUpdate($uid,$fields) {
  25. $rs = array();
  26. $model = new Model_User();
  27. $rs = $model->userUpdate($uid,$fields);
  28. return $rs;
  29. }
  30. public function updatePass($uid,$oldpass,$pass) {
  31. $rs = array();
  32. $model = new Model_User();
  33. $rs = $model->updatePass($uid,$oldpass,$pass);
  34. return $rs;
  35. }
  36. public function getBalance($uid) {
  37. $rs = array();
  38. $model = new Model_User();
  39. $rs = $model->getBalance($uid);
  40. return $rs;
  41. }
  42. public function getChargeRules() {
  43. $rs = array();
  44. $model = new Model_User();
  45. $rs = $model->getChargeRules();
  46. return $rs;
  47. }
  48. public function getProfit($uid) {
  49. $rs = array();
  50. $model = new Model_User();
  51. $rs = $model->getProfit($uid);
  52. return $rs;
  53. }
  54. public function setCash($data) {
  55. $rs = array();
  56. $model = new Model_User();
  57. $rs = $model->setCash($data);
  58. return $rs;
  59. }
  60. public function getLiverecord($touid,$p) {
  61. $rs = array();
  62. $model = new Model_User();
  63. $rs = $model->getLiverecord($touid,$p);
  64. return $rs;
  65. }
  66. public function getUserHome($uid,$touid) {
  67. $rs = array();
  68. $model = new Model_User();
  69. $rs = $model->getUserHome($uid,$touid);
  70. return $rs;
  71. }
  72. public function getPerSetting() {
  73. $rs = array();
  74. $model = new Model_User();
  75. $rs = $model->getPerSetting();
  76. return $rs;
  77. }
  78. public function getUserAccountList($uid) {
  79. $rs = array();
  80. $model = new Model_User();
  81. $rs = $model->getUserAccountList($uid);
  82. return $rs;
  83. }
  84. public function getUserAccount($where) {
  85. $rs = array();
  86. $model = new Model_User();
  87. $rs = $model->getUserAccount($where);
  88. return $rs;
  89. }
  90. public function setUserAccount($data) {
  91. $rs = array();
  92. $model = new Model_User();
  93. $rs = $model->setUserAccount($data);
  94. return $rs;
  95. }
  96. public function delUserAccount($data) {
  97. $rs = array();
  98. $model = new Model_User();
  99. $rs = $model->delUserAccount($data);
  100. return $rs;
  101. }
  102. public function getAuthInfo($uid){
  103. $rs = array();
  104. $model = new Model_User();
  105. $rs = $model->getAuthInfo($uid);
  106. return $rs;
  107. }
  108. }