|
|
|
@ -17,6 +17,7 @@ use app\common\model\store\StoreCategory; |
|
|
|
|
use app\common\repositories\store\StoreCategoryRepository; |
|
|
|
|
use app\common\repositories\system\merchant\MerchantRepository; |
|
|
|
|
use crmeb\services\VicWordService; |
|
|
|
|
use think\facade\Log; |
|
|
|
|
|
|
|
|
|
class SpuDao extends BaseDao |
|
|
|
|
{ |
|
|
|
@ -39,10 +40,13 @@ class SpuDao extends BaseDao |
|
|
|
|
} |
|
|
|
|
}elseif($where['order'] == 'star'){ |
|
|
|
|
$order = 'S.star DESC,S.rank DESC'; |
|
|
|
|
}elseif($where['order'] == 'product_id'){ |
|
|
|
|
$order = 'S.product_id ASC'; |
|
|
|
|
}else{ |
|
|
|
|
$order = 'S.'. (($where['order'] !== '') ?$where['order']: 'star' ).' DESC'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Log::info("Order is ". $order); |
|
|
|
|
|
|
|
|
|
$order .= ',S.create_time DESC'; |
|
|
|
|
if(isset($where['order']) && $where['order'] === 'none'){ |
|
|
|
|