rabin 1 vuosi sitten
vanhempi
commit
82c5f772bb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/dai/channel/api/Task.php

+ 1 - 1
src/dai/channel/api/Task.php

@@ -10,7 +10,7 @@ class Task
         $channel = Dever::db('info', 'channel')->select(array('type' => 1, 'status' => 1));
         if ($channel) {
             foreach ($channel as $k => $v) {
-                if ($v['connect_id']) {
+                if ($v['connect_id'] && $v['host'] && $v['appkey'] && $v['appsecret']) {
                     $connect = Dever::db('info', 'connect')->find($v['connect_id']);
                     if ($connect) {
                         $api = Dever::db('api', 'connect')->find(array('type' => 3, 'connect_id' => $connect['id']));