|
@@ -27,7 +27,7 @@ class OrderInfo extends Model
|
|
|
return $this->belongsTo(Refund::class,'refund_id');
|
|
|
}
|
|
|
public function refunds(){
|
|
|
- return $this->hasMany(Refund::class,'order_info_id');
|
|
|
+ return $this->hasMany(Refund::class,'order_info_id')->order('order_info_refund.id','desc');
|
|
|
}
|
|
|
public static function saveInfo(Orders $orders,$goods){
|
|
|
$orderInfo=new self();
|