Explorar o código

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

guanhailong %!s(int64=3) %!d(string=hai) anos
pai
achega
9b05bfaf41
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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)