|
@@ -43,9 +43,9 @@ public class SysUserDeviceServiceImpl extends BaseServiceImpl<Long, SysUserDevic
|
|
@Override
|
|
@Override
|
|
public boolean bindDevice(String clientId, Long userId, String deviceNum) {
|
|
public boolean bindDevice(String clientId, Long userId, String deviceNum) {
|
|
String paramName;
|
|
String paramName;
|
|
- if (StringUtils.equals(clientId, "STUDENT")) {
|
|
|
|
|
|
+ if (StringUtils.equalsIgnoreCase(clientId, "STUDENT")) {
|
|
paramName = "student_device_acc_num";
|
|
paramName = "student_device_acc_num";
|
|
- } else if (StringUtils.equals(clientId, "TEACHER")) {
|
|
|
|
|
|
+ } else if (StringUtils.equalsIgnoreCase(clientId, "TEACHER")) {
|
|
paramName = "teacher_device_acc_num";
|
|
paramName = "teacher_device_acc_num";
|
|
}else {
|
|
}else {
|
|
return true;
|
|
return true;
|