|
|
@@ -387,11 +387,11 @@ public class UserController {
|
|
|
/**
|
|
|
* 领取他人礼品卡
|
|
|
*/
|
|
|
- @PostMapping("/receive/giftCard/{code}")
|
|
|
- public Result<String> receiveGiftCardByRc(@PathVariable String code, @RequestBody GiftCardReceiveReq req) {
|
|
|
+ @PostMapping("/receive/giftCard")
|
|
|
+ public Result<String> receiveGiftCardByRc(@RequestBody GiftCardReceiveReq req) {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
Long relationId = req.getRelationId();
|
|
|
- userService.receiveGiftCardByRc(userId, code, relationId);
|
|
|
+ userService.receiveGiftCardByRc(userId, req.getCode(), relationId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
}
|