Browse Source

新订单

shish 5 years ago
parent
commit
5a579e8884
1 changed files with 7 additions and 0 deletions
  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);