|
|
<?php
|
|
|
|
|
|
namespace WebPlugin\Pay;
|
|
|
|
|
|
use WebPlugin\Helpers;
|
|
|
abstract class PayAbstract implements PayInterface {
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -14,14 +14,14 @@ abstract class PayAbstract implements PayInterface { |
|
|
*
|
|
|
* @var
|
|
|
*/
|
|
|
public $baseNoticeUrl = "http://www.yohobuy.com/pay/";
|
|
|
public $baseNoticeUrl = "//www.yohobuy.com/pay/";
|
|
|
|
|
|
/**
|
|
|
* 测试的回调地址
|
|
|
* Enter description here ...
|
|
|
* @var string
|
|
|
*/
|
|
|
public $testBaseNoticeUrl = "http://www.yohobuy.com/pay/";
|
|
|
public $testBaseNoticeUrl = "//www.yohobuy.com/pay/";
|
|
|
|
|
|
/**
|
|
|
* 获取支付的基地址
|
...
|
...
|
@@ -30,7 +30,7 @@ abstract class PayAbstract implements PayInterface { |
|
|
* @return string
|
|
|
*/
|
|
|
public function getBaseNoticeUrl($isTest){
|
|
|
return $isTest ? $this->testBaseNoticeUrl : $this->baseNoticeUrl;
|
|
|
return Helpers::getHttpOrHttps() . ($isTest ? $this->testBaseNoticeUrl : $this->baseNoticeUrl);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|