| | |
| | | package com.ruioyi.shop; |
| | | |
| | | |
| | | import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverRequest; |
| | | import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverResult; |
| | | import com.ruoyi.shop.RuoYiShopApplication; |
| | | import com.ruoyi.shop.service.shop.ShopService; |
| | | import org.junit.Test; |
| | | import com.ruoyi.shop.service.task.AgencyTaskService; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
| | |
| | | public class shopTest { |
| | | |
| | | @Resource |
| | | private ShopService shopService; |
| | | private AgencyTaskService agencyTaskService; |
| | | |
| | | @Test |
| | | public void main() { |
| | | |
| | | ProfitSharingReceiverRequest request = new ProfitSharingReceiverRequest(); |
| | | request.setAccount("1650744551"); |
| | | request.setName("泸州矗众信息科技有限责任公司"); |
| | | ProfitSharingReceiverResult result = shopService.addProfitSharingReceiver(request); |
| | | System.out.println(result); |
| | | } |
| | | } |