这个代码我知道的,问题是这样可能要直接修改
vendor\fancyecommerce\fecshop\services\payment\Alipay.php
的代码
if ($this->devide == 'wap') {
$this->_alipayRequest = new \AlipayTradeWapPayRequest();
$this->_productCode = 'QUICK_WAP_WAY';
} elseif ($this->devide == 'pc') {
$this->_productCode = 'FAST_INSTANT_TRADE_PAY';
$this->_alipayRequest = new \AlipayTradePagePayRequest();
} else {
Yii::$service->helper->errors->add('you must config param [devide] in payment alipay service');
return;
}
有可以不修改核心的代码方法吗?