Browse Source

联通测试服,添加和编辑卡套餐(支付方式)

guanhailong 3 years ago
parent
commit
9b05bfaf41
1 changed files with 3 additions and 1 deletions
  1. 3 1
      AdminController/UnicomManageController.py

+ 3 - 1
AdminController/UnicomManageController.py

@@ -246,7 +246,9 @@ class UnicomComboView(View):
         flow_total = request_dict.get('flowTotal', None)
         expiration_days = request_dict.get('expirationDays', None)
         expiration_type = request_dict.get('expirationType', None)
-        pay_type = request_dict.get('payType', None)
+        pay_type = request_dict.get(
+            'payType', '')[
+                   1:-1].split(',')  # '[1,2]' -> ['1','2']
         price = request_dict.get('price', None)
         remark = request_dict.get('remark', None)
         updated_time = request_dict.get('updatedTime', None)