修改key因顺序不同报错问题

This commit is contained in:
Lenovo 2024-08-09 14:41:54 +08:00
parent 9d5b573315
commit 35ea841eae
1 changed files with 1 additions and 0 deletions

View File

@ -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;