AgentInfoController.php 829 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Http\Controllers\Api;
  3. use Illuminate\Http\Request;
  4. use App\Http\Controllers\Controller;
  5. use \App\Http\Models;
  6. use \Exception;
  7. /**
  8. * 代理详情管理类
  9. */
  10. class AgentInfoController extends Controller
  11. {
  12. /**
  13. * 各代理余额查询
  14. *
  15. * @access public
  16. * @param mixed $req 数据传输
  17. * @return array JsonString
  18. */
  19. public function agentCash(Request $req)
  20. {
  21. $code = -2;
  22. $msg = '操作失败';
  23. try {
  24. $agentCashModel = new Models\AgentCash;
  25. $agentCashData = $agentCashModel->seeGameMoney();
  26. $msg = '成功';
  27. $code = 1;
  28. return toJson($code, $msg, $agentCashData);
  29. } catch (Exception $e) {
  30. return toJson($code, $msg, []);
  31. }
  32. }//end agentCash()
  33. }