Commit 4f60bb6c authored by 钟尚武's avatar 钟尚武

Merge branch 'shangwu/feature-laboratory' into 'test'

修复商品创建异常

See merge request alpha/sun!398
parents 56380708 8d270ef9
......@@ -197,7 +197,7 @@ class ProductUpdateView(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', 0)
period_of_use = request.POST.get('period_of_use', 0) or 0
if not id_:
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