Jump to content

Donations插件的Offline Payment不能自動群組晉級


Jack

Recommended Posts

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
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...