main
parent
d73ad877f0
commit
155b5532da
|
|
@ -65,10 +65,8 @@ public class PayController extends BaseController
|
||||||
|
|
||||||
@RequestMapping("/generateCode")
|
@RequestMapping("/generateCode")
|
||||||
@ApiOperation(value = "生成兑换码", notes = "生成兑换码", httpMethod = "POST")
|
@ApiOperation(value = "生成兑换码", notes = "生成兑换码", httpMethod = "POST")
|
||||||
public String generateCode(String password,Integer num,HttpServletResponse response){
|
public String generateCode(ExchangeArg exchangeArg,HttpServletResponse response){
|
||||||
if(!password.equals("bingyu_123")){
|
Integer num = exchangeArg.getNum();
|
||||||
return "------password error------";
|
|
||||||
}
|
|
||||||
if(num>10000){
|
if(num>10000){
|
||||||
return "------num error------";
|
return "------num error------";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue