Authored by 周少峰

default val

@@ -46,7 +46,7 @@ class HelperHome @@ -46,7 +46,7 @@ class HelperHome
46 * @param $product 46 * @param $product
47 * @return array 47 * @return array
48 */ 48 */
49 - public static function formatNew($product, $size) 49 + public static function formatNew($product, $size = array())
50 { 50 {
51 $result = array(); 51 $result = array();
52 foreach ($product as $key => $val) { 52 foreach ($product as $key => $val) {
@@ -85,7 +85,7 @@ class IndexModel @@ -85,7 +85,7 @@ class IndexModel
85 * @param $size 图片尺寸 85 * @param $size 图片尺寸
86 * @return array 86 * @return array
87 */ 87 */
88 - public static function preferenceData($channel, $uid, $udid, $recPos, $limit, $size) 88 + public static function preferenceData($channel, $uid, $udid, $recPos, $limit, $size = array())
89 { 89 {
90 $response = UserData::newPreference($channel, $uid, $udid, $recPos, $limit); 90 $response = UserData::newPreference($channel, $uid, $udid, $recPos, $limit);
91 if ($response['code'] === 200) { 91 if ($response['code'] === 200) {