|
@@ -555,9 +555,12 @@ class PaypalCycleNotify(View):
|
|
|
"""
|
|
|
country_qs = CountryModel.objects.filter(id=country_id).values('region_id')
|
|
|
# 不确定用户地区信息,默认美洲
|
|
|
- if not country_qs.exists() and CONFIG_INFO == CONFIG_EUR:
|
|
|
- PAY_LOGGER.info('PayPal周期扣款失败---不确定地区的用户请求欧洲服,uid:{},country_id:{}'.format(uid, country_id))
|
|
|
- return False
|
|
|
+ if not country_qs.exists():
|
|
|
+ if CONFIG_INFO == CONFIG_EUR:
|
|
|
+ PAY_LOGGER.info('PayPal周期扣款失败---不确定地区的用户请求欧洲服,uid:{},country_id:{}'.format(uid, country_id))
|
|
|
+ return False
|
|
|
+ else:
|
|
|
+ return True
|
|
|
|
|
|
region_id = country_qs[0]['region_id']
|
|
|
PAY_LOGGER.info('uid{}的用户地区信息: country_id:{}, region_id:{}'.format(uid, country_id, region_id))
|