Showing
3 changed files
with
7 additions
and
7 deletions
@@ -40,7 +40,7 @@ class IndexData | @@ -40,7 +40,7 @@ class IndexData | ||
40 | $params['client_type'] = $client_type; | 40 | $params['client_type'] = $client_type; |
41 | $params['private_key'] = Yohobuy::$privateKeyList[$client_type]; | 41 | $params['private_key'] = Yohobuy::$privateKeyList[$client_type]; |
42 | $params['client_secret'] = Sign::getSign($params); | 42 | $params['client_secret'] = Sign::getSign($params); |
43 | - return Yohobuy::get(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_RESOURCE_GET, $params); | 43 | + return Yohobuy::get(Yohobuy::SERVICE_URL . self::URL_OPERATIONS_RESOURCE_GET, $params, true); |
44 | } | 44 | } |
45 | 45 | ||
46 | /** | 46 | /** |
@@ -66,7 +66,7 @@ class IndexData | @@ -66,7 +66,7 @@ class IndexData | ||
66 | unset($param['os_version']); | 66 | unset($param['os_version']); |
67 | unset($param['screen_size']); | 67 | unset($param['screen_size']); |
68 | unset($param['v']); | 68 | unset($param['v']); |
69 | - return Yohobuy::get(Yohobuy::API_URL, $param); | 69 | + return Yohobuy::post(Yohobuy::API_URL, $param); |
70 | } | 70 | } |
71 | 71 | ||
72 | /** | 72 | /** |
@@ -94,7 +94,7 @@ class IndexData | @@ -94,7 +94,7 @@ class IndexData | ||
94 | unset($param['os_version']); | 94 | unset($param['os_version']); |
95 | unset($param['screen_size']); | 95 | unset($param['screen_size']); |
96 | unset($param['v']); | 96 | unset($param['v']); |
97 | - return Yohobuy::get(Yohobuy::API_URL, $param); | 97 | + return Yohobuy::post(Yohobuy::API_URL, $param); |
98 | } | 98 | } |
99 | 99 | ||
100 | } | 100 | } |
@@ -20,7 +20,7 @@ class UserData extends \LibModels\Wap\Home\UserData | @@ -20,7 +20,7 @@ class UserData extends \LibModels\Wap\Home\UserData | ||
20 | $param['debug'] = 'Y'; | 20 | $param['debug'] = 'Y'; |
21 | $param['screen_size'] = '320x568'; | 21 | $param['screen_size'] = '320x568'; |
22 | $param['client_secret'] = Sign::getSign($param); | 22 | $param['client_secret'] = Sign::getSign($param); |
23 | - return Yohobuy::post(Yohobuy::API_URL, $param); | 23 | + return Yohobuy::get(Yohobuy::API_URL, $param, true); |
24 | } | 24 | } |
25 | 25 | ||
26 | /** | 26 | /** |
@@ -37,6 +37,6 @@ class UserData extends \LibModels\Wap\Home\UserData | @@ -37,6 +37,6 @@ class UserData extends \LibModels\Wap\Home\UserData | ||
37 | $param['debug'] = 'Y'; | 37 | $param['debug'] = 'Y'; |
38 | $param['screen_size'] = '320x568'; | 38 | $param['screen_size'] = '320x568'; |
39 | $param['client_secret'] = Sign::getSign($param); | 39 | $param['client_secret'] = Sign::getSign($param); |
40 | - return Yohobuy::post(Yohobuy::API_URL, $param); | 40 | + return Yohobuy::get(Yohobuy::API_URL, $param, true); |
41 | } | 41 | } |
42 | } | 42 | } |
@@ -16,7 +16,7 @@ class BackData extends \LibModels\Wap\Passport\BackData | @@ -16,7 +16,7 @@ class BackData extends \LibModels\Wap\Passport\BackData | ||
16 | $param['method'] = 'app.register.checkCodeValid'; | 16 | $param['method'] = 'app.register.checkCodeValid'; |
17 | $param['code'] = $code; | 17 | $param['code'] = $code; |
18 | $param['client_secret'] = Sign::getSign($param); | 18 | $param['client_secret'] = Sign::getSign($param); |
19 | - return Yohobuy::get(Yohobuy::API_URL, $param, 3600); // 缓存1小时 | 19 | + return Yohobuy::get(Yohobuy::API_URL, $param, true); // 缓存1小时 |
20 | } | 20 | } |
21 | 21 | ||
22 | /** | 22 | /** |
@@ -33,6 +33,6 @@ class BackData extends \LibModels\Wap\Passport\BackData | @@ -33,6 +33,6 @@ class BackData extends \LibModels\Wap\Passport\BackData | ||
33 | $param['code'] = $code; | 33 | $param['code'] = $code; |
34 | $param['newPwd'] = $password; | 34 | $param['newPwd'] = $password; |
35 | $param['client_secret'] = Sign::getSign($param); | 35 | $param['client_secret'] = Sign::getSign($param); |
36 | - return Yohobuy::get(Yohobuy::API_URL, $param); | 36 | + return Yohobuy::post(Yohobuy::API_URL, $param); |
37 | } | 37 | } |
38 | } | 38 | } |
-
Please register or login to post a comment