shish 3 лет назад
Родитель
Сommit
32f0645d12
2 измененных файлов с 17 добавлено и 0 удалено
  1. 5 0
      app-hd/controllers/ConsoleController.php
  2. 12 0
      common/components/dict.php

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

@@ -124,7 +124,12 @@ class ConsoleController extends BaseController
     public function actionInit()
     {
         $dict = dict::get();
+        if (getenv('YII_ENV') != 'production') {
+            $dict['hdMiniMessage'] = $dict['hdMiniMessageDev'];
+        }
+
         $shop = isset($this->shop) && !empty($this->shop) ? $this->shop->attributes : [];
+
         util::success(['dict' => $dict, 'shop' => $shop]);
     }
 

+ 12 - 0
common/components/dict.php

@@ -8,6 +8,18 @@ class dict
 {
 
     public static $data = [
+        'hdMiniMessage' => [
+            //优惠券到账通知
+            'giveCoupon' => ['msgId' => '_MqYqXLgNPWvHg-tUuh3vJMTb2aAOvvIFf0Vm2pwjiI'],
+            //购买成功通知
+            'cgSuccess' => ['msgId' => 'UAIsxaFbkyi34CRYqncQ6pNsjNgn6Gcqte_AoHmPbxA'],
+        ],
+        'hdMiniMessageDev' => [
+            //优惠券到账通知
+            'giveCoupon' => ['msgId' => 'r7BIUWRqpVmqqOqdtq5BhjffkLyOaZxi0fvme_l-V8A'],
+            //购买成功通知
+            'cgSuccess' => ['msgId' => 'ZfCmPfD96W_H0-pWDyQHCJQC5ht41NXtTS8nP28xKQQ'],
+        ],
         'mtConfig' => [
             'app_id' => '119094',
             'app_secret' => 'b7e86d768391180f805621b40ec31e33',