lang 3 жил өмнө
parent
commit
9b7287fab5

+ 3 - 2
Controller/CloudStorage.py

@@ -950,7 +950,8 @@ class CloudStorageView(View):
 
     def do_pay_by_wechat_callback(self, request, response):  # 微信支付回调
 
-        logger = logging.getLogger('log')
+        logger = logging.getLogger('info')
+        logger.info(int(time.time()))
         try:
             pay = WechatPayObject()
             data = pay.weixinpay_call_back(request.body)
@@ -1043,7 +1044,7 @@ class CloudStorageView(View):
                     sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + UID + '设备在' + datetime + '已成功购买云存套餐',
                                          'Dear customer,you already subscribed the cloud storage package successfully for device ' + UID + ' on ' + time.strftime(
                                              "%b %dth,%Y", time.localtime())]
-
+                    logger.info(int(time.time()))
                     self.do_vod_msg_Notice(UID, channel, userid, lang, sys_msg_text_list, 'SMS_219738485')
                     return HttpResponse(pay.xml_to_dict({'return_code': 'SUCCESS', 'return_msg': 'OK'}))
             else: