function notice_back($uid, $wish) { $appid = TS_D('App')->getChoiceId('wish'); $notifyDao = TS_D('Notify'); $notifyDao->setAppId($appid); $sexName = getUserWo($uid); $content = unserialize($wish['content']); $content = str_replace('给' . $sexName . '送礼', '', $content); $body['content'] = $content; $url = '{WR}/apps/gift/index.php?s=/Index/receivebox'; return $notifyDao->send($uid, "wish_back", '', $body, $url); }
function _getcontent($value) { $content = $value['content']; $type = $value['type']; $uid = $value['uid']; $content = unserialize($content); $content = str_replace('{WR}', SITE_URL, $content); $sexName = getUserWo($uid, $this->uid); $content = str_replace(getUserWo($uid), $sexName, $content); if ($sexName == '我') { $content = str_replace('给' . $sexName . '送礼', '', $content); } $fids = $value['help']; if (!empty($fids)) { $content .= '<br/>帮实现' . $sexName . '愿意的好友:'; $fids = explode(',', $fids); $fids = array_unique($fids); foreach ($fids as $v) { $content .= "<a href='" . __TS__ . "/space/{$v}'>" . getUserName($v) . "</a> "; } } $content .= '<br/>'; return $content; }