Ver código fonte

购买4G套餐订单区分联通和电信

zhangdongming 1 ano atrás
pai
commit
4c2a48a3c0
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      Controller/UnicomCombo/UnicomComboController.py

+ 2 - 1
Controller/UnicomCombo/UnicomComboController.py

@@ -666,11 +666,12 @@ class UnicomComboView(View):
                 order_id = CommonService.createOrderID()
                 rank_id, ai_rank_id = cls.get_cloud_or_ai_combo()
 
+                order_type = 2 if unicom_device_qs['card_type'] == 0 else 5
                 order_dict = {'rank_id': rank_id, 'ai_rank_id': ai_rank_id, 'orderID': order_id, 'UID': device_uid,
                               'userID_id': user_id, 'desc': unicom_combo_qs['combo_name'], 'payType': pay_type,
                               'payTime': now_time, 'price': price, 'currency': 'CNY', 'addTime': now_time,
                               'updTime': now_time,
-                              'unify_combo_id': str(unicom_combo_qs['id']), 'order_type': 2,
+                              'unify_combo_id': str(unicom_combo_qs['id']), 'order_type': order_type,
                               'store_meal_name': unicom_combo_qs['combo_name']
                               }