|
|
@@ -59,7 +59,7 @@ class ConsoleController extends BaseController
|
|
|
'list' => $latestIncome,
|
|
|
];
|
|
|
}
|
|
|
- $asset = $this->shop->attributes;
|
|
|
+ $asset = isset($this->shop) && !empty($this->shop) ? $this->shop->attributes : [];
|
|
|
util::success([
|
|
|
'asset' => $asset,
|
|
|
'notice' => $notice,
|
|
|
@@ -72,7 +72,7 @@ class ConsoleController extends BaseController
|
|
|
public function actionInit()
|
|
|
{
|
|
|
$dict = dict::get();
|
|
|
- $shop = $this->shop->attributes;
|
|
|
+ $shop = isset($this->shop) && !empty($this->shop) ? $this->shop->attributes : [];
|
|
|
util::success(['dict' => $dict, 'shop' => $shop]);
|
|
|
}
|
|
|
|