|
|
@@ -157,7 +157,7 @@ class ShopController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if($this->mainId == 59421){
|
|
|
+ if ($this->mainId == 59421) {
|
|
|
if (!in_array($this->adminId, [4])) {
|
|
|
util::fail('已停用,请联系管理员');
|
|
|
}
|
|
|
@@ -193,15 +193,16 @@ class ShopController extends BaseController
|
|
|
$shop->save();
|
|
|
|
|
|
$ptStyle = $shop['ptStyle'] ?? dict::getDict('ptStyle', 'hd');
|
|
|
- $update = ['avatar'=>$avatar];
|
|
|
+ $update = ['avatar' => $avatar];
|
|
|
$where = ['mainId' => $this->mainId];
|
|
|
if ($ptStyle == dict::getDict('ptStyle', 'ghs')) {
|
|
|
GhsClass::updateByCondition($where, $update);
|
|
|
} else {
|
|
|
util::fail('门店头像更新失败,平台类型错误');
|
|
|
}
|
|
|
- $shopImg = imgUtil::groupImg($shop->avatar) . "?x-oss-process=image/resize,m_fill,h_80,w_80";
|
|
|
- util::success(['shopImg' => $shopImg], '门店头像更新成功');
|
|
|
+ $shopImg = imgUtil::groupImg($shop->avatar);
|
|
|
+ $smallShopImg = imgUtil::groupImg($shop->avatar) . "?x-oss-process=image/resize,m_fill,h_80,w_80";
|
|
|
+ util::success(['shopImg' => $shopImg, 'smallShopImg' => $smallShopImg], '门店头像更新成功');
|
|
|
}
|
|
|
|
|
|
//添加门店 ssh 2021.1.14
|