testWetchatPay.java 809 字节
package com.sibu.iworker;

import com.sibu.directSale.wechat.pojo.WechatPayVo;
import com.sibu.directSale.wechat.service.WechatTransfersService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * @author yuwenbo
 * @date 2017/12/28 19:45
 */
public class testWetchatPay extends ControllerTestBase {

    @Autowired
    private WechatTransfersService wechatTransfersService;

    @Test
    public void testPay(){
        WechatPayVo wechatPayVo =new WechatPayVo();
        wechatPayVo.setOpenId("o_g9us2eljgdSMB-OJfCtpIcsI6Y");
        wechatPayVo.setAmount(1);
        wechatPayVo.setDesc("佣金提现");
        Map result =wechatTransfersService.wechatPromotionTransfers(wechatPayVo);
        System.out.println(result.toString());
    }
}