Explorar el Código

优化云服务套餐

zhangdongming hace 1 año
padre
commit
e780180223
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      AdminController/CloudServiceManage/AgentOrderController.py

+ 1 - 1
AdminController/CloudServiceManage/AgentOrderController.py

@@ -123,7 +123,7 @@ class AgentOrderView(View):
             pay_price = Decimal(order_qs[0]['price']).quantize(Decimal('0.00'))
             profit = cls.calculate_order_profit(agent_package, pay_price)
 
-            dict_data = {'ac_id': ac_id, 'serial_number': serial_number, 'csp_id': package_id,
+            dict_data = {'ac_id': ac_id, 'serial_number': serial_number, 'csp_id': agent_package.id,
                          'order_id': order_id, 'status': 1, 'profit_amount': pay_price, 'profit': profit,
                          'pay_time': order_qs[0]['payTime'], 'created_time': now_time, 'updated_time': now_time}
             AgentDeviceOrder.objects.create(**dict_data)