Authored by hf

code review by hf: fixes bug to coupon newuser second times

@@ -27,6 +27,7 @@ class DetailData @@ -27,6 +27,7 @@ class DetailData
27 * 27 *
28 * @param int $productId 商品ID 28 * @param int $productId 商品ID
29 * @param int $uid 用户ID 29 * @param int $uid 用户ID
  30 + * @param int $productSkn SKN
30 * @return array 31 * @return array
31 */ 32 */
32 public static function baseInfo($productId, $uid, $productSkn = null) 33 public static function baseInfo($productId, $uid, $productSkn = null)
@@ -39,7 +39,7 @@ class DetailModel @@ -39,7 +39,7 @@ class DetailModel
39 elseif (is_numeric($productSkn)) { 39 elseif (is_numeric($productSkn)) {
40 $baseInfo = DetailData::baseInfo(null, $uid, $productSkn); 40 $baseInfo = DetailData::baseInfo(null, $uid, $productSkn);
41 } 41 }
42 - 42 +
43 // 商品名称 43 // 商品名称
44 if (empty($baseInfo['productName'])) { 44 if (empty($baseInfo['productName'])) {
45 return $result; 45 return $result;