当我尝试连续连接3个以上的方法时,我遇到了问题。 下面,我将向您展示我的组件代码:
if ($this->UserPayments->save($_payment) instanceof UserPayment) {
$this->loadComponent('LiqPay');
$this->LiqPay
->_setPublicKey(Configure::read('LiqPay.public_key'))
->_setPrivateKey(Configure::read('LiqPay.private_key'))
->_setOrderId($_payment->id);
$this->LiqPay
->_setDescription(__(
'payment',
"{$this->_user['first_name']} {$this->_user['last_name']}",
$_payment->amount))
->_setCurrency('eur')
->_setAmount($_payment->amount);
$this->LiqPay
->_setActionType('pay');
return $this->_jsonResponse($this->LiqPay->_getConfig());
}
我不知道,如何让链接超过3级。 有什么想法吗?