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();
     }