Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #56 from bbscool/GangZhuo_ver
Browse files Browse the repository at this point in the history
(fix #55) 修改yunData.setData()内数据的获取方式。
  • Loading branch information
GangZhuo committed May 22, 2016
2 parents b0e9b4d + 7bfbdf4 commit 63bb691
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pcs/pcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 63bb691

Please sign in to comment.