Browse Source

【修复bug】居民端小程序登录后缺少customerId

national_dev
Bill 2 years ago
parent
commit
5ad1e1e942
  1. 2
      code/smart-community/epmet-auth/src/main/java/com/epmet/service/impl/LoginServiceImpl.java

2
code/smart-community/epmet-auth/src/main/java/com/epmet/service/impl/LoginServiceImpl.java

@ -18,6 +18,7 @@ import com.epmet.commons.tools.utils.DateUtils;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.utils.SpringContextUtils;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.constant.SsoConstant;
import com.epmet.dto.UserDTO;
import com.epmet.dto.UserWechatDTO;
import com.epmet.dto.form.*;
@ -404,6 +405,7 @@ public class LoginServiceImpl implements LoginService {
String token) {
int expire = jwtTokenProperties.getExpire();
TokenDto tokenDto = new TokenDto();
tokenDto.setCustomerId(SsoConstant.RIZHAO_CUSTOMER_ID);
tokenDto.setApp(formDTO.getApp());
tokenDto.setClient(formDTO.getClient());
tokenDto.setUserId(userId);

Loading…
Cancel
Save