|
@@ -373,7 +373,7 @@ public class UserController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/receive/giftCard/{code}")
|
|
@PostMapping("/receive/giftCard/{code}")
|
|
|
public Result<String> receiveGiftCardByRc(@PathVariable String code) {
|
|
public Result<String> receiveGiftCardByRc(@PathVariable String code) {
|
|
|
- long userId = 32121l;
|
|
|
|
|
|
|
+ long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
userService.receiveGiftCardByRc(userId, code);
|
|
userService.receiveGiftCardByRc(userId, code);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|