记得上下班打卡 | git大法好,push需谨慎

Commit 2b95a87a authored by jiangxiulong's avatar jiangxiulong

兑换

parent 5e2577af
...@@ -31,15 +31,13 @@ public class GoblinInnerNftController { ...@@ -31,15 +31,13 @@ public class GoblinInnerNftController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "from", required = true, dataType = "String", name = "code", value = "兑换码", example = "1"), @ApiImplicitParam(type = "from", required = true, dataType = "String", name = "code", value = "兑换码", example = "1"),
@ApiImplicitParam(type = "from", required = true, dataType = "String", name = "userId", value = "用户ID", example = "1"), @ApiImplicitParam(type = "from", required = true, dataType = "String", name = "userId", value = "用户ID", example = "1"),
@ApiImplicitParam(type = "from", required = true, dataType = "String", name = "deviceFrom", value = "支付终端", example = "app", allowableValues = "app,wap,js,applet"),
}) })
public ResponseDto<Boolean> exchange( public ResponseDto<Boolean> exchange(
@RequestParam("code") @NotBlank(message = "兑换码不能为空") String code, @RequestParam("code") @NotBlank(message = "兑换码不能为空") String code,
@RequestParam("userId") @NotBlank(message = "用户ID不能为空") String userId, @RequestParam("userId") @NotBlank(message = "用户ID不能为空") String userId
@RequestParam("deviceFrom") @NotBlank(message = "支付终端不能为空") @Pattern(regexp = LnsRegex.Valid.TRIPLE_PF_FOR_PAY_TERMINAL, message = "支付终端类型无效") String deviceFrom
) { ) {
return iGoblinNftOrderService.exchange(code, userId, deviceFrom, 4); return iGoblinNftOrderService.exchange(code, userId, "systemAdmin", 4);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment