dever %!s(int64=6) %!d(string=hai) anos
pai
achega
65e0524391
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      act/lib/Note.php
  2. 1 1
      main/src/Journal.php

+ 1 - 1
act/lib/Note.php

@@ -15,7 +15,7 @@ class Note
         $where['state'] = 1;
         $info = Dever::db('act/live_note')->one($where);
 
-        if ($info) {
+        if ($info && $info['state'] == 1) {
             return 1;
         } else {
             return 2;

+ 1 - 1
main/src/Journal.php

@@ -586,7 +586,7 @@ class Journal extends Core
         }
 
         $user = Dever::db('passport/user')->one($this->data['uid']);
-        $wechat = Dever::db('passport/wechat')->one(array('uid' => $this->data['uid'], 'type' => 1));
+        $wechat = Dever::db('passport/wechat')->one(array('uid' => $this->data['uid'], 'type' => 1, 'system_id' => $this->data['system']));
 
         $source_type = Dever::input('source_type');