|
@@ -73,7 +73,7 @@ class StoreExchange extends BaseModel
|
|
* @param string $field
|
|
* @param string $field
|
|
* @return array
|
|
* @return array
|
|
*/
|
|
*/
|
|
- public static function getListAll($offset = 0, $limit = 10, $field = 'id,product_id,image,title,price,integral,ot_price,start_time,stop_time,stock,sales')
|
|
|
|
|
|
+ public static function getListAll($offset = 0, $limit = 10, $field = 'id,product_id,image,title,price,ot_price,start_time,stop_time,stock,sales')
|
|
{
|
|
{
|
|
$model = self::where('is_del', 0)->where('status', 1)->where('stock', '>', 0)->field($field)
|
|
$model = self::where('is_del', 0)->where('status', 1)->where('stock', '>', 0)->field($field)
|
|
->order('sort DESC,add_time DESC');
|
|
->order('sort DESC,add_time DESC');
|