Проблема


Рефереру не начисляется вознаграждение за реферальную программу.

Решение


Выполните команду:

Команда

/usr/local/mgr5/sbin/billmaintain --command affiliatemonthly
CODE

Просмотр лога

Apr 10 19:31:21 [27229:4642] core_module INFO Request [billmaintain][root] 'affiliate=1&func=affiliate.process&month=2019%2D05%2D01&out=xml&referal=7&referer=6'
Apr 10 19:31:21 [27229:4642] db EXTINFO begin transaction
Apr 10 19:31:21 [27229:4642] db EXTINFO Query: 'SELECT COUNT(*) FROM affiliate a LEFT JOIN account2group a2g ON a2g.account=6 AND a2g.accountgroup=a.account_group LEFT JOIN account2group rest ON rest.account=6 AND rest.accountgroup=a.account_group_restrict WHERE a.id='1' AND (a.account_group IS NULL OR a2g.account IS NOT NULL) AND rest.account IS NULL'
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO mgr_err::Access::Access(std::string const&, std::string const&) (lib/libmgr.so.5.197.0 + 0x4d) [*0x7f5e154ec593]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO aAffiliateProcess::Execute(isp_api::Session&) const (lib/billmgr.so + 0x2043) [*0x7f5e112ebbca]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO isp_api::Action::Run(isp_api::Session&) const (lib/libispapi.so.5.197.0 + 0x7a) [*0x7f5e112ee4db]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO isp_api::InternalCall(isp_api::BaseConnection const&, isp_api::Authen const&, isp_api::Action const&) (lib/libispapi.so.5.197.0 + 0x63b) [*0x7f5e1373b458]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO ispcore::ProcessRequest::ProcessApi1() (lib/libbase.so.5.197.0 + 0x208) [*0x7f5e1373e960]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO ispcore::ProcessRequest::operator()() (lib/libbase.so.5.197.0 + 0x1580) [*0x7f5e1373f5ef]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO mgr_thread::Handle::Impl<mgr_thread::List::Impl<ispcore::ProcessRequest> >::run() (lib/libbase.so.5.197.0 + 0x5f) [*0x7f5e10a9146f]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO ??? (lib/libmgr.so.5.197.0 + 0x0) [*0x7f5e162aadd5]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO ??? (/lib64/libpthread.so.0 + 0x0) [*0x7f5e15fd3ead]
Apr 10 19:31:21 [27229:4642] backtrace EXTINFO ??? (/lib64/libc.so.6 + 0x6d) [*(nil)]
Apr 10 19:31:21 [27229:4642] libmgr ERROR Error: Type: 'access' Object: 'affiliate' Value: '1'
Apr 10 19:31:21 [27229:4642] action EXTINFO Get message for error in action 'affiliate.process' for level 30
Apr 10 19:31:21 [27229:4642] action EXTINFO Get message for error in action 'mgrerror_access' for level 30
Apr 10 19:31:21 [27229:4642] db EXTINFO rollback transaction
Apr 10 19:31:21 [27229:4642] action EXTINFO Get message for error in action 'msgerror' for level 30
Apr 10 19:31:21 [27229:4642] libmgr EXTINFO Thread 5a57275dea627325 finished
CODE

Если в логе появляется ошибка, как в блоке выше, значит реферер подключён к реферальной программе, но не удовлетворяет всем её условиям. Например, не состоит в нужной группе или состоит в запрещённой.