|
|
@@ -19,10 +19,10 @@ class Lakala
|
|
|
|
|
|
public function __construct($params)
|
|
|
{
|
|
|
- $this->appid = $params['appid'];
|
|
|
- $this->serial_no = $params['serial_no'];
|
|
|
- $this->merchant_no = $params['merchant_no'];
|
|
|
- $this->term_no = $params['term_no'];
|
|
|
+ $this->appid = $params['appid'] ?? '';
|
|
|
+ $this->serial_no = $params['serial_no'] ?? '';
|
|
|
+ $this->merchant_no = $params['merchant_no'] ?? '';
|
|
|
+ $this->term_no = $params['term_no'] ?? '';
|
|
|
$this->merchantPrivateKeyPath = $params['merchantPrivateKeyPath'];
|
|
|
$this->lklCertificatePath = $params['lklCertificatePath'];
|
|
|
if (getenv('YII_ENV') == 'production') {
|