12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- // +----------------------------------------------------------------------
- // | Niucloud-admin 企业快速开发的saas管理平台
- // +----------------------------------------------------------------------
- // | 官方网址:https://www.niucloud.com
- // +----------------------------------------------------------------------
- // | niucloud团队 版权所有 开源版本可自由商用
- // +----------------------------------------------------------------------
- // | Author: Niucloud Team
- // +----------------------------------------------------------------------
- namespace app\api\controller\shop;
- use app\service\api\shop\ShopCashOutService;
- use core\base\BaseApiController;
- use think\Response;
- class ShopCashOut extends BaseApiController
- {
- /**
- * 提现详情
- * @return Response
- */
- public function info($id)
- {
- return success(( new ShopCashOutService() )->getInfo($id));
- }
- /**
- * 开始转账
- * @param $id
- * @return Response
- */
- public function transfer($id)
- {
- $data = $this->request->params([
- ['open_id', 0],
- ]);
- return success(data: (new ShopCashOutService())->transfer($id, $data));
- }
- /**
- * 店铺转账校验
- * @return Response
- */
- public function checkTransfer()
- {
- $data = $this->request->params([
- ['code', ''],
- ]);
- return success(data:( new ShopCashOutService() )->checkTransfer($data['code']));
- }
- }
|