|
@@ -200,12 +200,18 @@ class ShipEngineMaintenance extends Auth
|
|
|
'id.require'=>'id必须'
|
|
|
]);
|
|
|
$list = DataUserRepairOffer::mk()
|
|
|
- ->where('repair_id',$data['id'])
|
|
|
- ->where('offer_id',$this->uuid)
|
|
|
+ ->where('repair_id',118)
|
|
|
+ ->where('offer_id',114)
|
|
|
->field('id,price')
|
|
|
->select();
|
|
|
- $imgs = array_filter(explode(',',DataUserRepairOffer::mk()->where('repair_id',$data['id'])
|
|
|
- ->where('offer_id',$this->uuid)
|
|
|
+ foreach ($list as $k=>$v){
|
|
|
+ if($v['price'] == 0.00){
|
|
|
+ unset($list[$k]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $list = array_values($list->toArray());
|
|
|
+ $imgs = array_filter(explode(',',DataUserRepairOffer::mk()->where('repair_id',118)
|
|
|
+ ->where('offer_id',114)
|
|
|
//->where('price','>',0)
|
|
|
->order('id desc')
|
|
|
->limit(1)
|