瀏覽代碼

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

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)