Skip to content

Commit

Permalink
报错信息修复:extract() expects parameter 1 to be array, null given
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed May 21, 2018
1 parent 726a624 commit 54a9c85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/appfront/modules/Catalog/block/reviewproduct/Lists.php
Expand Up @@ -76,7 +76,8 @@ public function getLastData()
{
$this->initParam();
if (!$this->spu || !$this->product_id) {
return;
Yii::$service->page->message->addError('param spu and _id is require');
return [];
}
$product = Yii::$service->product->getByPrimaryKey($this->product_id);
if (!$product['spu']) {
Expand Down Expand Up @@ -118,6 +119,7 @@ public function getLastData()
'url' => Yii::$service->url->getUrl($url_key),
];
}
return [];
}
/**
* @property $spu | String
Expand Down
Expand Up @@ -113,8 +113,6 @@ public function actionLogout()
}
if ($rt) {
$redirectUrl = base64_decode($rt);
$redirectUrl = \Yii::$service->helper->htmlEncode($redirectUrl);
//exit;
Yii::$service->url->redirect($redirectUrl);
} else {
Yii::$service->url->redirect(Yii::$service->url->HomeUrl());
Expand Down
1 change: 1 addition & 0 deletions services/Customer.php
Expand Up @@ -381,6 +381,7 @@ protected function actionLoginSuccessRedirect($urlKey = '')
Yii::$service->session->remove($this::USER_LOGIN_SUCCESS_REDIRECT_URL_KEY);
//echo Yii::$service->session->get($this::USER_LOGIN_SUCCESS_REDIRECT_URL_KEY);
//exit;
$url = urldecode($url);
return Yii::$service->url->redirect($url);
} else if($urlKey) {
return Yii::$service->url->redirectByUrlKey($urlKey);
Expand Down

0 comments on commit 54a9c85

Please sign in to comment.