Authored by 周少峰

default val

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