dever 7 years ago
parent
commit
6e793673a3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      youzan/src/Card.php

+ 2 - 2
youzan/src/Card.php

@@ -38,7 +38,7 @@ class Card
 			$one = Dever::db('youzan/card_list')->one(array('option_card_id' => $info['id'], 'option_user' => $user));
 			if ($one) {
 				# 检查info,有无msg_key,有则发送模板消息
-				if ($msg_project_id && $info['msg_key'] && $info['page'] && $info['msg_content']) {
+				if ($msg_project_id && $info['msg_key'] && $info['msg_page'] && $info['msg_content']) {
 					if ($msg_page) {
 						$info['msg_page'] = $msg_page;
 					}
@@ -62,7 +62,7 @@ class Card
 					Dever::db('youzan/card_list')->update(array('where_id' => $card['id'], 'user' => $user, 'status' => 2));
 
 					# 检查info,有无msg_key,有则发送模板消息
-					if ($msg_project_id && $info['msg_key'] && $info['page'] && $info['msg_content']) {
+					if ($msg_project_id && $info['msg_key'] && $info['msg_page'] && $info['msg_content']) {
 						if ($msg_page) {
 							$info['msg_page'] = $msg_page;
 						}