Commit e0c95c57 by 墨竹

fix:登录修改

parent debcf8e2
......@@ -356,7 +356,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
StaffPrivacyUseLogBO staffPrivacyUseLogBO = new StaffPrivacyUseLogBO();
BeanUtils.copyProperties(staffPrivacyUseLogDTO, staffPrivacyUseLogBO);
String staffId = staffPrivacyUseLogDTO.getStaffId();
if (StringUtils.isNotBlank(staffId)) {
if (!"-1".equals(staffId) || StringUtils.isNotBlank(staffId)) {
StaffPrivacyUseLogBO privacyUseLog = staffPrivacyUseLogService.getByStaffId(staffId);
if (privacyUseLog == null) {
staffPrivacyUseLogService.insert(staffPrivacyUseLogBO);
......
......@@ -197,7 +197,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
String staffId = staffLoginQO.getStaffId();
String wxOpenUseId = staffLoginQO.getWxOpenUseId();
//-1 代表游客登录
if ("-1".equals(staffId)) {
if ("-1".equals(staffId) || StringUtils.isBlank(staffId)) {
return wellDoneLoginPrivacy(staffLoginQO, request, staffId, wxOpenUseId);
}
//用户登录
......
......@@ -51,7 +51,7 @@ public class StaffLoginQO implements Serializable {
* 用户手机版本
*/
private String staffPhoneVersion;
@NotEmpty(message = "用户id不允许为空")
private String wxOpenUseId;
public String getStaffId() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment