|
@@ -51,7 +51,7 @@ class Goods Extends Model
|
|
|
}
|
|
|
|
|
|
public static function show(){
|
|
|
- return self::where('status',1);
|
|
|
+ return self::where('status',self::STATUS_NORMAL);
|
|
|
}
|
|
|
public function getAmountAttr($amount,$model){
|
|
|
if(KillService::open() && $model['is_kill']){
|
|
@@ -82,17 +82,11 @@ class Goods Extends Model
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ #维修费商品
|
|
|
+ public static function getFixGoods(){
|
|
|
+ $goods=self::show()->where('is_fix',1)->order('id','desc')->find();
|
|
|
+ return $goods;
|
|
|
+ }
|
|
|
|
|
|
protected static function init()
|
|
|
{
|