dever %!s(int64=5) %!d(string=hai) anos
pai
achega
c28187aa7f
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      act/lib/Note.php
  2. 1 1
      journal/lib/Pay.php

+ 1 - 1
act/lib/Note.php

@@ -93,7 +93,7 @@ class Note
                     $formid = $v['formid'];
                     if ($formid) {
                         # 发送模板消息
-                        $wechat = Dever::db('passport/wechat')->one(array('uid' => $v['uid']));
+                        $wechat = Dever::db('passport/wechat')->one(array('uid' => $v['uid'], 'type' => 1, 'system_id' => $v['cate_id']));
                         if ($wechat && Dever::project('wechat_applet')) {
                             $send['key'] = 'note_live';
                             $send['project_id'] = $v['cate_id'];

+ 1 - 1
journal/lib/Pay.php

@@ -81,7 +81,7 @@ class Pay
                 }
 
                 # 发模板消息
-                $wechat = Dever::db('passport/wechat')->one(array('uid' => $uid));
+                $wechat = Dever::db('passport/wechat')->one(array('uid' => $uid, 'type' => 1, 'system_id' => $order['cate_id']));
                 if ($wechat && Dever::project('wechat_applet')) {
                     $send['key'] = 'buy_journal';
                     $send['project_id'] = $order['cate_id'];