|
@@ -37,6 +37,14 @@ class Card
|
|
|
if ($info) {
|
|
|
$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_page) {
|
|
|
+ $info['msg_page'] = $msg_page;
|
|
|
+ }
|
|
|
+ $send = Dever::load('applet/msg')->getData($info['msg_content']);
|
|
|
+ Dever::load('applet/msg')->sendOne($info['msg_key'], $msg_project_id, $user, $info['msg_page'], $send);
|
|
|
+ }
|
|
|
return $one;
|
|
|
} else {
|
|
|
$state = Dever::lock($this->lock);
|