public function _initialize() { parent::_initialize(); $this->return_url = "http://" . $_SERVER['HTTP_HOST'] . "/Mpay/payreturn"; $this->notify_url = "http://" . $_SERVER['HTTP_HOST'] . "/Mpay/paynotice"; $this->member_url = "http://" . $_SERVER['HTTP_HOST'] . "/member"; try { import('App.Api.llpay'); $this->payCore = llpay::getInstance(); } catch (Exception $e) { $this->errLog($e, '_initialize'); die($e->getMessage()); } }
public static function getInstance() { if (is_null(self::$_instance) || isset(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }