소스 검색

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

guanhailong 3 년 전
부모
커밋
9b05bfaf41
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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)