Эх сурвалжийг харах

微信购买云服务优化账单产品名称

zhangdongming 1 жил өмнө
parent
commit
694dbddfeb

+ 2 - 2
Controller/CloudStorage.py

@@ -1342,9 +1342,9 @@ class CloudStorageView(View):
         elif pay_type == 3:
             pay = WechatPayObject()
             notify_url = "{}cloudstorage/dowechatnotify".format(SERVER_DOMAIN_SSL)
-            content = CommonService.Package_Type(0, content)  # 云存套餐
+            product_name = store_qs[0]['lang__title'] + store_qs[0]['lang__content']  # 云存套餐
             # 获取参数
-            parameter_dict = pay.get_parameter(order_id, content, float(price) * 100, ip, notify_url,
+            parameter_dict = pay.get_parameter(order_id, product_name, float(price) * 100, ip, notify_url,
                                                quote("lang=" + lang))
             print('parameter_dict', parameter_dict)
             # parameter_dict 参数中获取MWEB_URL 调转页面在路径后面添加redirect_url

+ 2 - 1
Controller/UnicomCombo/UnicomComboController.py

@@ -699,10 +699,11 @@ class UnicomComboView(View):
                     notify_url = 'unicom/wap/pay/wechat-notify'
                     ip = CommonService.get_ip_address(request)
                     params = 'activateType=' + activate_type
+                    product_name = unicom_combo_qs['combo_name'] + unicom_combo_qs['remark']
                     sign_params = PayService.create_wechat_payment(params, order_id,
                                                                    price, ip,
                                                                    notify_url,
-                                                                   unicom_combo_qs['remark'],
+                                                                   product_name,
                                                                    response)
                     result['result'] = sign_params
                     cls.create_order_pay_log(order_id, f'{serial_number}购买联通4G套餐', notify_url, 'wechatPay', 'SUCCESS')