|
|
@@ -154,7 +154,7 @@ class EnshrineService extends BaseService
|
|
|
->where(['eo.source_id'=> $sid,'eo.user_id'=> $userId,'eo.type'=> $type,'g.goods_type'=> $goodsType])
|
|
|
->where(function($query) use($expireTime){
|
|
|
if($expireTime>0){
|
|
|
- $query->where('create_time','>=', time()- $expireTime*3600);
|
|
|
+ $query->where('eo.create_time','>=', time()- $expireTime*3600);
|
|
|
}
|
|
|
})
|
|
|
->select(['g.name','g.goods_type','g.code','g.icon','g.icon_real','eo.source_id','eo.status','eo.create_time'])
|