|
|
@@ -240,10 +240,15 @@ class MainController extends BaseController
|
|
|
$smallShopImg = $shopImg . "?x-oss-process=image/resize,m_fill,h_180,w_180";
|
|
|
|
|
|
//是否显示推荐广告
|
|
|
- $showAd = 1;
|
|
|
+ $showAd = 0;
|
|
|
+ //用于审核的账号不要显示广告
|
|
|
if ($this->mainId == 58) {
|
|
|
$showAd = 0;
|
|
|
}
|
|
|
+ //没有登录不显示广告
|
|
|
+ if(empty($this->mainId)){
|
|
|
+ $showAd = 0;
|
|
|
+ }
|
|
|
|
|
|
$deadline = $sj['deadline'] ?? '';
|
|
|
$relation = isset($this->shopAdmin) && !empty($this->shopAdmin) ? $this->shopAdmin->attributes : [];
|