shish 5 лет назад
Родитель
Сommit
5a579e8884
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      app-hd/controllers/ConsoleController.php

+ 7 - 0
app-hd/controllers/ConsoleController.php

@@ -48,6 +48,13 @@ class ConsoleController extends BaseController
             }
         }
 
+        //引导关注公众号
+        $admin = $this->admin;
+        $subscribe = $admin['subscribe'] ?? 0;
+        if ($subscribe == 0) {
+            $notice = array_merge($notice, [['title' => '您还未开启微信提醒,无法接收新订单通知', 'action' => '开启', 'page' => '/pagesStatistics/pagesPublicity']]);
+        }
+
         if (isset($this->shop) && !empty($this->shop)) {
             //今天访客
             $todayVisit = StatVisitService::getTodayVisitNum($this->shopId);