Просмотр исходного кода

wesmiler 报恩寺项目提交

wesmiler 4 лет назад
Родитель
Сommit
400c6914bb
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/Services/WechatService.php

+ 2 - 0
app/Services/WechatService.php

@@ -184,6 +184,8 @@ class WechatService extends BaseService
         $config['notify'] = $notifyConfig? $notifyConfig : [];
         if ($key && $key != 'notify') {
             return isset($config[$key]['value']) ? $config[$key]['value'] : '';
+        } else if ($key == 'notify'){
+            return isset($config['notify'])? $config['notify'] : [];
         } else {
             return $config ? $config : [];
         }