|
@@ -272,6 +272,7 @@ public class CmsAccountServiceImpl extends ServiceImpl<AccountMapper, Account> i
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
String regex;
|
|
String regex;
|
|
|
|
|
+ String regex2 = "---";
|
|
|
if (goodsId == 29l) {
|
|
if (goodsId == 29l) {
|
|
|
regex = "\\|";
|
|
regex = "\\|";
|
|
|
} else {
|
|
} else {
|
|
@@ -299,7 +300,14 @@ public class CmsAccountServiceImpl extends ServiceImpl<AccountMapper, Account> i
|
|
|
insert.setPassword(password);
|
|
insert.setPassword(password);
|
|
|
insert.setSecret(secret);
|
|
insert.setSecret(secret);
|
|
|
} else {
|
|
} else {
|
|
|
- String[] part = map.get("0").toString().split(regex);
|
|
|
|
|
|
|
+ String params = map.get("0").toString();
|
|
|
|
|
+ String[] part;
|
|
|
|
|
+ //兼容
|
|
|
|
|
+ if (params.contains(regex2) && !params.contains(regex)) {
|
|
|
|
|
+ part = params.split(regex2);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ part = params.split(regex);
|
|
|
|
|
+ }
|
|
|
if (part.length >= 2) {
|
|
if (part.length >= 2) {
|
|
|
String account = part[0];
|
|
String account = part[0];
|
|
|
String password = part[1];
|
|
String password = part[1];
|