|
|
@@ -22,9 +22,12 @@ class ShopController extends BaseController
|
|
|
public function actionInfo()
|
|
|
{
|
|
|
$shop = $this->shop;
|
|
|
- $info = $shop->attributes;
|
|
|
- $superWx = $info['superWx'] ?? '';
|
|
|
- $info['superWx'] = imgUtil::groupImg($superWx) . "?x-oss-process=image/resize,m_fill,h_700,w_700";
|
|
|
+ $info = !empty($shop) ? $shop->attributes : [];
|
|
|
+ $info['superWx'] = '';
|
|
|
+ if (isset($info['superWx'])) {
|
|
|
+ $superWx = $info['superWx'];
|
|
|
+ $info['superWx'] = imgUtil::groupImg($superWx) . "?x-oss-process=image/resize,m_fill,h_700,w_700";
|
|
|
+ }
|
|
|
util::success(['info' => $info]);
|
|
|
}
|
|
|
|