package com.ruoyi.app.pay;

import com.ruoyi.app.utils.zaloPay.ZalopayDisbursement;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
/**
 * 支出（取现）
 * @Description: 支出（取现）
 * @Author: Liyihao
 * @Date: 2022/1/27 15:05
 * @Version: V1.0
 */
@RestController
@RequestMapping("/disbursement")
public class DisbursementController {
    @Anonymous
    @RequestMapping("/verifyAccount")
    public AjaxResult verifyAccount(String phone, long amount) throws Exception {
        String result = ZalopayDisbursement.verifyAccount(phone,amount);
        return AjaxResult.success("成功",result);
    }

}
