Commit 56380708 authored by 钟尚武's avatar 钟尚武

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

修复商品创建异常

See merge request alpha/sun!396
parents 2196a31c 3b711a5d
......@@ -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