ShopCashOut.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\api\controller\shop;
  12. use app\service\api\shop\ShopCashOutService;
  13. use core\base\BaseApiController;
  14. use think\Response;
  15. class ShopCashOut extends BaseApiController
  16. {
  17. /**
  18. * 提现详情
  19. * @return Response
  20. */
  21. public function info($id)
  22. {
  23. return success(( new ShopCashOutService() )->getInfo($id));
  24. }
  25. /**
  26. * 开始转账
  27. * @param $id
  28. * @return Response
  29. */
  30. public function transfer($id)
  31. {
  32. $data = $this->request->params([
  33. ['open_id', 0],
  34. ]);
  35. return success(data: (new ShopCashOutService())->transfer($id, $data));
  36. }
  37. /**
  38. * 店铺转账校验
  39. * @return Response
  40. */
  41. public function checkTransfer()
  42. {
  43. $data = $this->request->params([
  44. ['code', ''],
  45. ]);
  46. return success(data:( new ShopCashOutService() )->checkTransfer($data['code']));
  47. }
  48. }