zoujiajian 3 年之前
父節點
當前提交
47e6e08936
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netflix-web/src/main/java/com/cyksj/web/controller/user/UserController.java

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/user/UserController.java

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