Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
2b362f2dd744d318a35f6a51e202e15d551c4117
1 parent
b3511522
修改post方式
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
library/LibModels/Web/Home/IndexData.php
library/LibModels/Web/Home/UserData.php
library/LibModels/Web/Passport/BackData.php
library/LibModels/Web/Home/IndexData.php
View file @
2b362f2
...
...
@@ -40,7 +40,7 @@ class IndexData
$params
[
'client_type'
]
=
$client_type
;
$params
[
'private_key'
]
=
Yohobuy
::
$privateKeyList
[
$client_type
];
$params
[
'client_secret'
]
=
Sign
::
getSign
(
$params
);
return
Yohobuy
::
get
(
Yohobuy
::
SERVICE_URL
.
self
::
URL_OPERATIONS_RESOURCE_GET
,
$params
);
return
Yohobuy
::
get
(
Yohobuy
::
SERVICE_URL
.
self
::
URL_OPERATIONS_RESOURCE_GET
,
$params
,
true
);
}
/**
...
...
@@ -66,7 +66,7 @@ class IndexData
unset
(
$param
[
'os_version'
]);
unset
(
$param
[
'screen_size'
]);
unset
(
$param
[
'v'
]);
return
Yohobuy
::
ge
t
(
Yohobuy
::
API_URL
,
$param
);
return
Yohobuy
::
pos
t
(
Yohobuy
::
API_URL
,
$param
);
}
/**
...
...
@@ -94,7 +94,7 @@ class IndexData
unset
(
$param
[
'os_version'
]);
unset
(
$param
[
'screen_size'
]);
unset
(
$param
[
'v'
]);
return
Yohobuy
::
ge
t
(
Yohobuy
::
API_URL
,
$param
);
return
Yohobuy
::
pos
t
(
Yohobuy
::
API_URL
,
$param
);
}
}
\ No newline at end of file
...
...
library/LibModels/Web/Home/UserData.php
View file @
2b362f2
...
...
@@ -20,7 +20,7 @@ class UserData extends \LibModels\Wap\Home\UserData
$param
[
'debug'
]
=
'Y'
;
$param
[
'screen_size'
]
=
'320x568'
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
post
(
Yohobuy
::
API_URL
,
$param
);
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
,
true
);
}
/**
...
...
@@ -37,6 +37,6 @@ class UserData extends \LibModels\Wap\Home\UserData
$param
[
'debug'
]
=
'Y'
;
$param
[
'screen_size'
]
=
'320x568'
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
post
(
Yohobuy
::
API_URL
,
$param
);
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
,
true
);
}
}
\ No newline at end of file
...
...
library/LibModels/Web/Passport/BackData.php
View file @
2b362f2
...
...
@@ -16,7 +16,7 @@ class BackData extends \LibModels\Wap\Passport\BackData
$param
[
'method'
]
=
'app.register.checkCodeValid'
;
$param
[
'code'
]
=
$code
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
,
3600
);
// 缓存1小时
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
,
true
);
// 缓存1小时
}
/**
...
...
@@ -33,6 +33,6 @@ class BackData extends \LibModels\Wap\Passport\BackData
$param
[
'code'
]
=
$code
;
$param
[
'newPwd'
]
=
$password
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
ge
t
(
Yohobuy
::
API_URL
,
$param
);
return
Yohobuy
::
pos
t
(
Yohobuy
::
API_URL
,
$param
);
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment