温馨提示:本文共1531个字,读完预计4分钟。
public function sendMemberSnsUpgradeMessage($openid, $nickname, $oldlevel, $level)
{
$set = $this->getSet();
$tm = $set[‘tm’];
$datas[] = array('name' => '昵称', 'value' => $nickname);
$datas[] = array(‘name’ => ‘新等级’, ‘value’ => $oldlevel[‘levelname’]);
$datas[] = array(‘name’ => ‘旧等级’, ‘value’ => $level[‘levelname’]);
$datas[] = array('name' => '时间', 'value' => date('Y-m-d H:i:s', time()));
$remark = '
[昵称]感谢您的支持,如有疑问请联系在线客服。';
$text = '亲爱的' . $nickname . '您的社区等级已升级,详情请登录社区查看。';
$title = '社区等级升级';
$message = array(
'first' => array('value' => '亲爱的' . $nickname . ',您的社区等级已升级', 'color' => '#ff0000'),
'keyword2' => array('title' => '处理进度', 'value' => $title, 'color' => '#000000'),
'keyword3' => array('title' => '处理内容', 'value' => '您的人人社区等级已升级成功', 'color' => '#000000'),
'keyword1' => array('title' => '业务类型', 'value' => '会员通知', 'color' => '#000000'),
'remark' => array('value' => '
感谢您的支持', 'color' => '#000000')
);
m('notice')->sendNotice(array('openid' => $openid, 'tag' => 'sns', 'default' => $message, 'cusdefault' => $text, 'datas' => $datas, 'plugin' => 'sns'));
}