Jelajahi Sumber

1、优化社交客户端模块

rayson 3 bulan lalu
induk
melakukan
bb315ae9c6

+ 7 - 0
citu-module-system/citu-module-system-api/src/main/java/com/citu/module/system/api/social/dto/SocialUserBindReqDTO.java

@@ -42,4 +42,11 @@ public class SocialUserBindReqDTO {
     @Schema(description = "社交应用标识")
     private String application;
 
+    public SocialUserBindReqDTO(Long userId, Integer userType, Integer socialType, String socialCode, String socialState) {
+        this.userId = userId;
+        this.userType = userType;
+        this.socialType = socialType;
+        this.code = socialCode;
+        this.state = socialState;
+    }
 }

+ 1 - 0
menduner/menduner-system-biz/src/main/java/com/citu/module/menduner/system/controller/app/common/social/AppSocialUserController.java

@@ -85,6 +85,7 @@ public class AppSocialUserController {
     @PostMapping("/wxa-qrcode")
     @Operation(summary = "获得微信小程序码(base64 image)")
     public CommonResult<String> getWxaQrcode(@RequestBody @Valid SocialWxQrcodeReqDTO reqVO) {
+        reqVO.setApplication(null == reqVO.getApplication() ? SOCIAL_WX_PROGRAM_JOBHUNT_APPLICATION : reqVO.getApplication());
         byte[] wxQrcode = socialClientApi.getWxaQrcode(reqVO).getCheckedData();
         return success(Base64.encode(wxQrcode));
     }