dever 5 tahun lalu
induk
melakukan
c28187aa7f
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  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'];