|
@@ -255,7 +255,6 @@ class UnicomComboView(View):
|
|
|
|
|
|
if not all([pay_type, price, combo_name]):
|
|
|
return response.json(444)
|
|
|
- combo_id = int(combo_id)
|
|
|
flow_total = int(flow_total)
|
|
|
expiration_days = int(expiration_days)
|
|
|
expiration_type = int(expiration_type)
|
|
@@ -286,7 +285,6 @@ class UnicomComboView(View):
|
|
|
else:
|
|
|
re_data['updated_time'] = int(time.time())
|
|
|
UnicomCombo.objects.filter(id=combo_id).update(**re_data)
|
|
|
- UnicomCombo.objects.get(id=combo_id).pay_type.set(pay_type)
|
|
|
UnicomCombo.objects.create(**re_data).pay_type.set(pay_type)
|
|
|
return response.json(0)
|
|
|
|