Commit 3b711a5d authored by zhongshangwu's avatar zhongshangwu

修复商品创建异常

parent 06422cb1
......@@ -163,7 +163,7 @@ class ProductCreateView(APIView):
effect_ids = json.loads(request.POST.get('effect_ids', '[]'))
is_online = request.POST.get('is_online')
brand_id = request.POST.get('brand_id')
period_of_use = request.POST.get('period_of_use')
period_of_use = request.POST.get('period_of_use') or 0
if not cn_name or not image:
return r'缺少参数'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment