Notify.php 332 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Libs\Pay;
  3. use App\Libs\Pay\Merchants\Swiftpass;
  4. class WechatPay
  5. {
  6. private static $_instance;
  7. static function instance($merchant)
  8. {
  9. if(!self::$_instance)
  10. {
  11. switch ($merchant) {
  12. case 'Swiftpass':
  13. self::$_instance = new Swiftpass();
  14. break;
  15. }
  16. }
  17. return self::$_instance;
  18. }
  19. }