@loginValid
def user_order(request):
    id = request.COOKIES.get('user_id')
    if id:
        user = LoginUser.objects.filter(id=id).first()
        order_lists = PayOrder.objects.filter(order_user=user).order_by('-order_date')
    return render(request, 'buyer/user_center_order.html', locals())
@loginValid
def user_order(request):
    id = request.COOKIES.get('user_id')
    if id:
        user = LoginUser.objects.filter(id=id).first()
        order_lists = PayOrder.objects.filter(order_user=user).order_by('-order_date')
    return render(request, 'buyer/user_center_order.html', locals())