提交
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
import co.yixiang.yshop.module.order.controller.app.order.param.AppPayParam;
|
||||
import co.yixiang.yshop.module.order.service.storeorder.AppStoreOrderService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@SpringBootTest
|
||||
public class OrderTest {
|
||||
|
||||
@Resource
|
||||
private AppStoreOrderService appStoreOrderService;
|
||||
@Test
|
||||
public void Test() throws Exception {
|
||||
AppPayParam param = new AppPayParam();
|
||||
param.setFrom("h5");
|
||||
param.setUni("1718884545014530048");
|
||||
param.setPaytype("weixin_h5");
|
||||
appStoreOrderService.pay(Long.parseLong("9"), param);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user