From 7bfbdf4a96163e8f2f0c43c8841d47282361cefb Mon Sep 17 00:00:00 2001 From: bbscool Date: Thu, 19 May 2016 01:55:49 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9yunData.setData()=E5=86=85?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E3=80=82=20=E5=8E=9F=E6=9C=AC=E6=8B=AC=E5=8F=B7=E5=86=85?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=B0=B1=E6=98=AF=E4=B8=80=E6=AE=B5jsonp?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E7=8E=B0=E5=9C=A8=E5=88=99=E6=98=AF?= =?UTF-8?q?=E9=A2=84=E5=85=88=E5=B0=86jsonp=E5=8A=A0=E8=BD=BD=E5=88=B0?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=8F=98=E9=87=8F=EF=BC=88context=EF=BC=89?= =?UTF-8?q?=E9=87=8C=E7=84=B6=E5=90=8E=E5=B0=86=E5=8F=98=E9=87=8F=E4=BC=A0?= =?UTF-8?q?=E8=BF=9B=E5=8E=BB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pcs/pcs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcs/pcs.c b/pcs/pcs.c index 4a803333..d81bf409 100644 --- a/pcs/pcs.c +++ b/pcs/pcs.c @@ -221,7 +221,8 @@ static char *pcs_get_yunData(const char *html, const char *key) if (*p == key[0] && pcs_utils_streq(p, key, i)) { tmp = p + i; PCS_SKIP_SPACE(tmp); - if (*tmp != '(') continue; tmp++; + //if (*tmp != '(') continue; tmp++; + if (*tmp != '=') continue; tmp++; PCS_SKIP_SPACE(tmp); if (*tmp != '{') continue; end = tmp; @@ -1347,7 +1348,8 @@ PCS_API PcsRes pcs_islogin(Pcs handle) } if (!pcs->bdstoken || strlen(pcs->bdstoken) == 0) { cJSON *json, *item; - char *jsonData = pcs_get_yunData(html, "yunData.setData"); + char *jsonData = pcs_get_yunData(html, "context"); + //char *jsonData = pcs_get_yunData(html, "yunData.setData"); if (!jsonData) { return PCS_NOT_LOGIN; }