|
@@ -1115,6 +1115,7 @@ class CloudStorageView(View):
|
|
|
return HttpResponse(pay.xml_to_dict({'return_code': 'FAIL', 'return_msg': repr(e)}))
|
|
|
|
|
|
def do_create_pay_order(self, request_dict, userID, ip, response): # 创建支付订单
|
|
|
+ logger = logging.getLogger('log')
|
|
|
uid = request_dict.get('uid', None)
|
|
|
channel = request_dict.get('channel', None)
|
|
|
pay_type = int(request_dict.get('pay_type', None))
|
|
@@ -1188,11 +1189,15 @@ class CloudStorageView(View):
|
|
|
if price < 0:
|
|
|
return response.json(10049)
|
|
|
price = float(price)
|
|
|
+ logger.info("------------------coupin_price")
|
|
|
+ logger.info(price)
|
|
|
+ price = round(price,2)
|
|
|
|
|
|
if pay_type == 1:
|
|
|
# 订阅周期扣款
|
|
|
if(smqs[0]['cycle_config_id']):
|
|
|
#查询是否有订阅过,活跃状态
|
|
|
+ # return HttpResponse(price)
|
|
|
checkHasSubscribe = Paypal.checkSubscriptions(userID,uid,rank)
|
|
|
if checkHasSubscribe is False:
|
|
|
return response.json(10050)
|