public function editBeautifulBroker() { $param = $this->request->get_parameters(); $title = trim($param['edittitle']); $content = trim($param['editcontent']); $photoid = trim($param['editphotoId']); $beautifulId = trim($param['beautifulId']); if (!empty($title) && !empty($content) && !empty($beautifulId)) { Bll_BeautifulBroker::updateBrokerSelf($title, $content, $photoid, $beautifulId); echo json_encode(array('code' => 'ok')); } else { echo json_encode(array('code' => 'error')); } }
public function setBrokerSms($beautifulBrokerId, $is_verify) { $beautifulbrokerInfo = Bll_BeautifulBroker::getOneBroker($beautifulBrokerId); $brokerInfo = $this->getBrokerInfo(array($beautifulbrokerInfo['brokerid'])); if ($is_verify == 1) { $mesg = $brokerInfo[$beautifulbrokerInfo['brokerid']]['TrueName'] . '您好,恭喜您已经通过审核,访问' . $this->build_anjuke_broker_url($beautifulBrokerId) . ' 看看您的投票单页吧!投票阶段开始后,邀请您的朋友为您投票吧。'; //站内信需要加个链接 $mesg_zhannei = $brokerInfo[$beautifulbrokerInfo['brokerid']]['TrueName'] . '您好,恭喜您已经通过审核,访问<a target="_blank" href="' . $this->build_anjuke_broker_url($beautifulBrokerId) . '">' . $this->build_anjuke_broker_url($beautifulBrokerId) . '</a>看看您的投票单页吧!投票阶段开始后,邀请您的朋友为您投票吧。'; } else { $mesg = $brokerInfo[$beautifulbrokerInfo['brokerid']]['TrueName'] . '您好,很抱歉您的最美经纪人资料没有通过组委会审核,' . '请尽快查看组委会要求,访问http://t.cn/zR6v1Kf 修改您的报名资料'; $mesg_zhannei = $brokerInfo[$beautifulbrokerInfo['brokerid']]['TrueName'] . '您好,很抱歉您的最美经纪人资料没有通过组委会审核,' . '请尽快查看组委会要求,访问<a target="_blank" href="http://t.cn/zR6v1Kf">http://t.cn/zR6v1Kf</a>修改您的报名资料'; } $sms_isok = Bll_BeautifulBroker::setBrokerSms($beautifulbrokerInfo['brokerid'], $brokerInfo[$beautifulbrokerInfo['brokerid']]['UserMobile'], $mesg); $this->setMessage($brokerInfo[$beautifulbrokerInfo['brokerid']]['UserId'], $mesg_zhannei); return $sms_isok; }