linhw 2024-04-29 11:53:38 +08:00
parent d73ad877f0
commit 155b5532da
2 changed files with 19 additions and 4 deletions

View File

@ -65,10 +65,8 @@ public class PayController extends BaseController
@RequestMapping("/generateCode")
@ApiOperation(value = "生成兑换码", notes = "生成兑换码", httpMethod = "POST")
public String generateCode(String password,Integer num,HttpServletResponse response){
if(!password.equals("bingyu_123")){
return "------password error------";
}
public String generateCode(ExchangeArg exchangeArg,HttpServletResponse response){
Integer num = exchangeArg.getNum();
if(num>10000){
return "------num error------";
}

View File

@ -0,0 +1,17 @@
package com.ruoyi.app.domain;
import lombok.Data;
/**
* app_city
*
* @author wyh
* @date 2024-04-24
*/
@Data
public class ExchangeArg
{
private static final long serialVersionUID = 1L;
private Integer num;
}