...
|
...
|
@@ -193,17 +193,7 @@ class Common |
|
|
public static function goodsList($where='',$page,$uid='',$limit='',$order='id desc'){
|
|
|
$arr = [];
|
|
|
//默认未登录
|
|
|
$is_news = 2;
|
|
|
if(!empty($uid)){
|
|
|
//已登录
|
|
|
$res1 = self::findSoftWhereData('order',['uid'=>$uid,'status'=>config('verify.status')[3]],'id');
|
|
|
if($res1){
|
|
|
$is_news = 1;//旧人
|
|
|
}else{
|
|
|
$is_news = 0;//新人
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$is_news = self::is_new($uid);
|
|
|
if(empty($where)){
|
|
|
if($is_news == 1){
|
|
|
//去除含有新人标签的数据
|
...
|
...
|
@@ -242,12 +232,10 @@ class Common |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 检索商品列表
|
|
|
* 是否是新人
|
|
|
* @ApiInternal
|
|
|
*/
|
|
|
public static function searchGoodsList($keyword,$where,$page,$uid){
|
|
|
$arr = [];
|
|
|
//默认未登录
|
|
|
public static function is_new($uid){
|
|
|
$is_news = 2;
|
|
|
if(!empty($uid)){
|
|
|
//已登录
|
...
|
...
|
@@ -258,6 +246,17 @@ class Common |
|
|
$is_news = 0;//新人
|
|
|
}
|
|
|
}
|
|
|
return $is_news;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 检索商品列表
|
|
|
* @ApiInternal
|
|
|
*/
|
|
|
public static function searchGoodsList($keyword,$where,$page,$uid){
|
|
|
$arr = [];
|
|
|
//默认未登录
|
|
|
$is_news = self::is_new($uid);
|
|
|
if($is_news == 1){
|
|
|
$where['is_new'] = 0;
|
|
|
}
|
...
|
...
|
|