|
|
@@ -82,10 +82,10 @@ class MainController extends BaseController
|
|
|
$shop = $this->shop;
|
|
|
$balance = $shop->balance ?? 0.00;
|
|
|
$txBalance = $shop->txBalance ?? 0.00;
|
|
|
- $sj = $this->sj->attributes;
|
|
|
+ $sj = isset($this->sj) && !empty($this->sj) ? $this->sj->attributes : [];
|
|
|
$shopImg = $shop->avatar ?? '';
|
|
|
$deadline = $sj['deadline'] ?? '';
|
|
|
- $relation = $this->shopAdmin->attributes;
|
|
|
+ $relation = isset($this->shopAdmin) && !empty($this->shopAdmin) ? $this->shopAdmin->attributes : [];
|
|
|
$adminName = $relation['name'];
|
|
|
$shopAdminId = $relation['id'];
|
|
|
$mobile = $relation['mobile'] ?? '';
|