摘要: django 要加锁 必须先加事物 例子 from rest_framework import exceptionsfrom django.db import transaction def perform_create(self, serializer): with transaction.ato 阅读全文
posted @ 2019-03-17 23:30 流年中渲染了微笑 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 最后看出价的代码就是总代码 1. 查看竞价和出价是一个url url(r'^bid/$', bid.BidView.as_view()), 获取url传过来的值 是 重写 get_queryset """竞价""" from app01 import models from rest_framewo 阅读全文
posted @ 2019-03-17 23:23 流年中渲染了微笑 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1. 拍卖专场的接口 url(r'^auction/$', auction.AuctionView.as_view()), class AuctionModelView(serializers.ModelSerializer): status = serializers.CharField(sour 阅读全文
posted @ 2019-03-17 19:00 流年中渲染了微笑 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 小程序支付官网 统一下单API官网 再次签名 小程序前端页面 <radio-group bindchange="changeGoods"> <view class='row'wx:for="{{goodList}}" wx:key="index"> <text>{{item.title}}-{{it 阅读全文
posted @ 2019-03-17 13:06 流年中渲染了微笑 阅读(272) 评论(0) 推荐(0) 编辑