|
|
@@ -1,5 +1,6 @@
|
|
|
package com.izouma.nineth.web;
|
|
|
|
|
|
+import cn.hutool.core.math.Money;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.github.kevinsawicki.http.HttpRequest;
|
|
|
@@ -150,10 +151,10 @@ public class UserBalanceController extends BaseController {
|
|
|
|
|
|
@PostMapping("/testRecharge")
|
|
|
@PreAuthorize("hasRole('ADMIN')")
|
|
|
- public void testRecharge(Long userId) {
|
|
|
+ public void testRecharge(Long userId, BigDecimal money) {
|
|
|
RechargeOrder rechargeOrder = RechargeOrder.builder()
|
|
|
.id(snowflakeIdWorker.nextId())
|
|
|
- .amount(BigDecimal.valueOf(5000))
|
|
|
+ .amount(money)
|
|
|
.userId(userId)
|
|
|
.status(OrderStatus.NOT_PAID)
|
|
|
.payMethod(PayMethod.BALANCE)
|