Jack Posted September 1, 2019 Share Posted September 1, 2019 Donations插件 Donations插件的Offline Payment開啟後,會發現不能自動群組晉級 我有問過插件作者, 要改為 開啟 /applications/donate/modules/admin/donations/donations.php 找到 /* Save new status */ $donation->status = ( $donation->status == 1 ) ? 0 : 1; $donation->save(); 在它的底下加入 if( $donation->status == 1 AND $donation->author() ) { try { \IPS\donate\Reward::issue( $donation->amount, $donation->currency, $donation->author() ); } catch ( \Exception $e ){} } 然後儲存 Link to comment
Jack Posted September 1, 2019 Author Share Posted September 1, 2019 這麼改 雖然Offline Payment批准後,就能自動群組晉級 但是升級群組若有時間限制,到期後,是否也能自動降級群組? 還有以後新版本也都要這麼改寫? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now