|
@@ -84,7 +84,10 @@ class Goods Extends Model
|
|
|
|
|
|
#维修费商品
|
|
|
public static function getFixGoods(){
|
|
|
- $goods=self::show()->where('is_fix',1)->order('id','desc')->find();
|
|
|
+ static $goods;
|
|
|
+ if(!$goods) {
|
|
|
+ $goods = self::show()->where('is_fix', 1)->order('id', 'desc')->find();
|
|
|
+ }
|
|
|
return $goods;
|
|
|
}
|
|
|
|