Authored by 郭成尧

'uid处理'

@@ -228,7 +228,9 @@ class UserData @@ -228,7 +228,9 @@ class UserData
228 $param = Yohobuy::param(); 228 $param = Yohobuy::param();
229 $param['method'] = 'app.home.newPreference'; 229 $param['method'] = 'app.home.newPreference';
230 $param['yh_channel'] = $channel; 230 $param['yh_channel'] = $channel;
  231 + if ($uid != 0 && $uid != null) {
231 $param['uid'] = $uid; 232 $param['uid'] = $uid;
  233 + }
232 $param['udid'] = $udid; 234 $param['udid'] = $udid;
233 $param['rec_pos'] = $rec_pos; 235 $param['rec_pos'] = $rec_pos;
234 $param['limit'] = $limit; 236 $param['limit'] = $limit;
@@ -419,13 +419,13 @@ class CartModel @@ -419,13 +419,13 @@ class CartModel
419 /** 419 /**
420 * 获取为你优选商品 待处理 420 * 获取为你优选商品 待处理
421 * 421 *
422 - * @param $channel  
423 - * @param $uid  
424 - * @param $udid  
425 - * @param $rec_pos  
426 - * @param $limit 422 + * @param $channel 频道
  423 + * @param $uid 用户id
  424 + * @param $udid 设备id
427 * @param int $page 分页页码 425 * @param int $page 分页页码
428 * @return array 426 * @return array
  427 + * @internal param $rec_pos
  428 + * @internal param $limit
429 */ 429 */
430 public static function getRecommendProduct($channel, $uid, $udid, $page) 430 public static function getRecommendProduct($channel, $uid, $udid, $page)
431 { 431 {