Reward Plugin + Document viewer plugin Counting problem

ramitk

New Member
YetiShare User
Aug 17, 2016
1
0
1
Hi,
I detected that when using document viewer, PPD is counted basing on google servers (USA +CA) and counting it again when user download it. This is an example of the log

===========================================================
2017-06-13 00:03:36 - Request received to log PPD. (origin: file.class.php, use_download_complete_callback = 0) FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php FileOwnerId: 0
2017-06-13 00:03:36 - User IP: 66.249.93.219. Nothing found for this IP and file in the last 24 hours. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - User country: US. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Found country group id: 1. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Failed finding reward amount based on country group and filesize boundaries but found at upper end: CountryGroupId: 1. Reward: 8.00. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Reward / 1000 = 0.008. CountryGroupId: 1. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Completed checks for limitations. Status: pending RewardAmount: 0.008. 1. FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - PPD logged (pending @ 0.008. Country: US). FileId: #708, Name: لغة الجسد.pdf, UserLevel: 0, Origin: file.class.php LoggedInUserId: 0
2017-06-13 00:03:36 - Using Nginx XAccelRedirect to send the file to the user.
===========================================================

Also is there any way how to set the reset period to more than 24 hours, because when the same IP download the same file the day after it will count normally which I don't want. I want to expand this period to one week

Thank you