修改key因顺序不同报错问题
This commit is contained in:
parent
9d5b573315
commit
35ea841eae
|
@ -1064,6 +1064,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
|||
|
||||
// 解析Cookie
|
||||
private String valueFromCookie(String key, String text) {
|
||||
key = key+"=";
|
||||
String s = text.substring(text.indexOf(key), text.length());
|
||||
String value = s.substring(s.indexOf("=") + 1, s.indexOf(";"));
|
||||
return value;
|
||||
|
|
Loading…
Reference in New Issue