Skip to content

Commit

Permalink
修正基佬提得BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
lordlezehaf committed Apr 10, 2019
1 parent fc70e0d commit 69f755b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ function user()

function goods()
{
return $this->hasOne(Goods::class, 'id', 'goods_id');
return $this->hasOne(Goods::class, 'id', 'goods_id')->withTrashed();
}

function coupon()
{
return $this->hasOne(Coupon::class, 'id', 'coupon_id');
return $this->hasOne(Coupon::class, 'id', 'coupon_id')->withTrashed();
}

function payment()
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/orderList.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
@if(empty($order->user) )
【账号不存在】
@else
<a href="{{url('admin/userList?id=') . $order->user->id}}" target="_blank"> <span class="label label-info">{{$order->user->username}}</span> </a>
<a href="{{url('admin/userList?id=') . $order->user->id}}" target="_blank"> {{$order->user->username}} </a>
@endif
</td>
<td> {{$order->order_sn}} </td>
Expand Down

0 comments on commit 69f755b

Please sign in to comment.