本文整理汇总了PHP中reqstr函数的典型用法代码示例。如果您正苦于以下问题:PHP reqstr函数的具体用法?PHP reqstr怎么用?PHP reqstr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了reqstr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: searchAction
/**
* 会员查询
*/
public function searchAction()
{
$page = reqnum("page", 1);
$pagesize = reqnum("pagesize", 10);
$username = trim(reqstr('username', ''));
$email = trim(reqstr('email', ''));
$regtime = reqstr('regtime', '');
$logintime = reqstr('logintime', '');
if (!$username && !$email && !$regtime && !$logintime) {
$this->forward = "search";
return;
}
$url = '';
if ($username) {
$url .= '&username=' . urlencode($username);
}
if ($email) {
$url .= '&email=' . urlencode($email);
}
if ($regtime) {
$url .= '®time=' . urlencode($regtime);
}
if ($logintime) {
$url .= '&logintime=' . urlencode($logintime);
}
$m = new Psys_MemberUserModel();
$list = $m->SearchList($username, $email, $regtime, $logintime, $page, $pagesize);
// var_dump($list);
// exit;
self::inidate($list['allnum'], $page, $pagesize, count($list['allrow']));
$this->smarty->assign('url', $url);
$this->smarty->assign('list', $list['allrow']);
$this->smarty->assign('psys_base_url', PSYS_BASE_URL);
$this->forward = "search";
}
示例2: indexAction
/**
*
* @do 跳转
*
* @access public
* @author Nick
* @copyright rockhippo
* @param -
* @return -
*
*/
public function indexAction()
{
$data['message'] = reqstr('message', '');
if ($data['message'] == 'privilege') {
$data['message'] = 'You have no privilege.';
}
$data['type'] = reqstr('type', '');
$data['Url'] = $data['jumpUrl'] = str_replace("|", "&", reqstr('url', '/index/index'));
//若多参数则改为|连接
$data['waitSecond'] = reqstr('time', 3);
$this->smarty->assign('data', $data);
$this->forward = 'index';
}
示例3: saleAction
/**
* 出售充值卡
* @return multitype:number string |multitype:number string boolean
*/
public function saleAction()
{
if (!$_SESSION['Cur_X_User']) {
return array('Code' => -100);
}
$id = reqstr('cardNo', '');
$rs = array('Code' => -1, 'result' => '');
if (!$id) {
$rs['result'] = 'id为空!';
return $rs;
}
$cd = new Psys_CardModel();
$k = $cd->Sale($id);
if ($k > 0) {
$rs['Code'] = 0;
$rs['result'] = true;
} else {
$rs['result'] = '售卖失败';
}
return $rs;
}
示例4: pointslistAction
public function pointslistAction()
{
$page = reqnum("page", 1);
$pagesize = reqnum("pagesize", 20);
$username = reqstr('username', '');
$model = new Psys_PointsModel();
$where = array();
if (!empty($username)) {
$where['username'] = username;
}
$orderby = '';
$field = '*';
$points_list = $model->GetList($where, $orderby, $page, $pagesize, $field);
if (!empty($points_list['allrow'])) {
foreach ($points_list['allrow'] as &$points) {
//获取城市信息
$points['ctime'] = date('Y-m-d H:i:s', $points['ctime']);
}
}
self::inidate($points_list['allnum'], $page, $pagesize, count($points_list['allrow']));
$this->smarty->assign('points_list', $points_list['allrow']);
$this->forward = 'pointslist';
}
示例5: spreadtrainappinfoAction
/**
* 伙伴推广数据
*/
public function spreadtrainappinfoAction()
{
$data = reqstr('data');
// if (!$data) {
// return;
// }
$data = urldecode($data);
$info = array();
parse_str($data, $info);
//$date = (int)$info['date']?(int)$info['date']:7; //默认是查出7天的数据
$sdate = trim($info['sdate']) ? trim($info['sdate']) : '';
$edate = trim($info['edate']) ? trim($info['edate']) : '';
$station = (int) $info['station'] ? (int) $info['station'] : 0;
// 0 表示查询出所有车站
$hour = trim($info['time']) ? trim($info['time']) : '';
$from = trim($info['entrance']) ? trim($info['entrance']) : 'all';
$type = trim($info['type']) ? trim($info['type']) : 'pv';
//默认是游戏
if (!$sdate && !$edate) {
$edate = $sdate = date('Y-m-d');
}
if (!$sdate || !$edate) {
if ($sdate) {
$edate = $sdate;
} else {
$sdate = $edate;
}
}
//
$nt = new Psys_ActivityModel();
$action = array('entrance' => $from, 'userindex' => 'userindex', 'clickhqg' => 'clickhqg', 'userhqg' => 'userhqg', 'clickdmbj' => 'clickdmbj', 'userdmbj' => 'userdmbj', 'clickactivedetails' => 'clickactivedetails', 'useractivedetails' => 'useractivedetails', 'useractivedetailsdown' => 'useractivedetailsdown', 'userhqgdown' => 'userhqgdown', 'userdmbjdown' => 'userdmbjdown', 'opentrainapp' => 'opentrainapp');
foreach ($action as $k => $v) {
$data_tab[$k] = $nt->NewUserActivity($sdate, $edate, $station, $hour, $type, $v, $from);
}
return $data_tab;
}
示例6: updatefulladsAction
/**
* 更新广告位信息
*/
public function updatefulladsAction()
{
$id = reqnum('id', 0);
$ispost = reqnum('ispost', 0);
$model = new Psys_AdsModel();
if ($ispost == 1) {
//广告名
$adname = reqstr('adname');
//名称缩写
$adsname = reqstr('adsname');
//显示位置
$colid = reqstr('colid');
//图片路径
$imgurl = reqstr('imgurl', '');
//访问路径
$actionurl = reqstr('actionurl');
$subpage = reqnum('subpage');
$flag = reqnum('flag');
$data = array('adname' => $adname, 'adsname' => $adsname, 'colid' => $colid, 'flag' => $flag, 'imgurl' => $imgurl, 'actionurl' => $actionurl, 'subpage' => $subpage, 'ctime' => time(), 'station' => '1');
$result = array('result' => 'ERROR');
if ($imgurl == '') {
MsgInfoConst::GetMsg(1041, $result);
return $result;
}
if ($id == 0) {
$nt = new Psys_AdsModel();
$where = array('adname' => $adname);
$info = $nt->GetOne($where, "id,adname,subpage,imgurl,actionurl,colid,flag");
if ($info) {
$result = array('result' => 'ADNAME');
}
$returnid = $model->AddOne($data);
// start 写操作日志
$log = array('logtype' => 72, 'guid' => $_SESSION['Cur_X_User']['id'], 'ctime' => time(), 'cip' => real_ip());
$log['logdetail'] = $_SESSION['Cur_X_User']['username'] . "于" . date("Y-m-d H:i:s") . "[添加]广告位" . $adname;
$model->admin_syslog($log);
// end 日志
$result['result'] = 'SUCCESS';
} else {
$w = array('id' => $id);
$returnid = $model->UpdateOne($data, $w);
// start 写操作日志
$log = array('logtype' => 72, 'guid' => $_SESSION['Cur_X_User']['id'], 'ctime' => time(), 'cip' => real_ip());
$log['logdetail'] = $_SESSION['Cur_X_User']['username'] . "于" . date("Y-m-d H:i:s") . "[编辑]广告位" . $adname;
$model->admin_syslog($log);
// end 日志
$result['result'] = 'SUCCESS';
}
if ($result['result'] == 'SUCCESS') {
$file = dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/temp.txt';
$fp = fopen($file, 'w');
fwrite($fp, '1');
fclose($fp);
}
return $result;
}
}
示例7: expAction
public function expAction()
{
$orderid = reqstr('orderid', '');
$username = reqstr('username', '');
$id = reqstr('id', '');
$where = '1=1 and flag=1';
if (!empty($orderid)) {
$where .= " and orderid='" . $orderid . "'";
}
if (!empty($username)) {
$where .= ' and username=' . $username;
}
if (!empty($id)) {
$id = trim($id, ',');
$where .= " and id in (" . $id . ")";
}
$page = reqnum("page", 1);
$pagesize = reqnum("pagesize", 1000);
$m = new Psys_UserModel();
$list = $m->GetList($where, '', $page, $pagesize, "id,username,mark,goodsid,num,ctime", 'rhi_mallorder');
global $G_X;
$filestr = 'charge' . date('YmdHis') . uniqid() . '.csv';
$filename = PUBLIC_PATH . $G_X['prjstr'] . DIRECTORY_SEPARATOR . $filestr;
//设置文件名
if (!file_exists($filename)) {
touch($filename);
chmod($filename, 0777);
}
$fp = fopen($filename, 'w');
$title = array("序号", "电话号码", '发放号码', '商品id', '数目', '兑换时间');
foreach ($title as &$value) {
$value = iconv('utf-8', 'gb2312', $value);
}
fputcsv($fp, $title);
if ($list['allrow']) {
foreach ($list['allrow'] as &$row) {
$row['ctime'] = date('Y-m-d H:i:s', $row['ctime']);
if (fputcsv($fp, $row)) {
$m->UpdateOne(array('ifuse' => 1), array('id' => $row['id']), 'rhi_mallorder');
}
}
}
fclose($fp);
// header('Content-Type: application/octet-stream');
// header('Content-Disposition: attachment; filename=' . $filestr);
// header('Content-Transfer-Encoding: binary');
// header('Content-Length: ' . filesize($fileName));
// readfile($filename);
return array('status' => 1, 'filename' => $filestr);
}
示例8: ajaxMonthlypointHtmlAction
/**
*
* @do ajax 获取月浏览数据
*
* @sign public
* @author jerry
* @copyright rockhippo
* @param -
* @return html
*
*/
public function ajaxMonthlypointHtmlAction()
{
$start = reqstr("start", "");
$end = reqstr("end", "");
$PSys_signModel = new PSys_PageviewModel();
$where["month_>="] = $start;
$where["month_<="] = $end;
$order = "month ASC";
$result = $PSys_signModel->GetList($where, $order, 0, 0, "*", "rhc_lottery_monthly");
$start_num = $new_reg = $new_num = $cost_points = $get_points = $first_get_points = $third_get_points = $second_get_points = $fourth_get_points = $fifth_get_points = "";
foreach ($result["allrow"] as $k => $v) {
$start_num += intval($v["start_num"]);
$new_reg += intval($v["new_reg"]);
$new_num += intval($v["new_num"]);
$cost_points += intval($v["cost_points"]);
$get_points += intval($v["get_points"]);
$first_get_points += intval($v["first_get_points"]);
$third_get_points += intval($v["third_get_points"]);
$second_get_points += intval($v["second_get_points"]);
$fourth_get_points += intval($v["fourth_get_points"]);
$fifth_get_points += intval($v["fifth_get_points"]);
}
$this->smarty->assign("data", $result["allrow"]);
$this->smarty->assign("start_num", $start_num);
$this->smarty->assign("new_reg", $new_reg);
$this->smarty->assign("new_num", $new_num);
$this->smarty->assign("cost_points", $cost_points);
$this->smarty->assign("get_points", $get_points);
$this->smarty->assign("first_get_points", $first_get_points);
$this->smarty->assign("third_get_points", $third_get_points);
$this->smarty->assign("second_get_points", $second_get_points);
$this->smarty->assign("fourth_get_points", $fourth_get_points);
$this->smarty->assign("fifth_get_points", $fifth_get_points);
$this->forward = "ajaxMonthlyPoint";
}
示例9: ajaxRensHourExportAction
/**
*
* @do 导出人寿用户数据
*
* @pingan public
* @author jerry
* @copyright rockhippo
* @param -
* @return -
*
*/
public function ajaxRensHourExportAction()
{
$start = reqstr("start", "");
$micstart = strtotime($start);
$end = reqstr("end", "");
$micend = strtotime($end);
if ($micstart != $micend) {
exit('请选择单日!');
}
$micend += 86400;
$PSys_PinganRule = new PSys_PinganRule();
$i = 0;
for ($x = $micstart; $x <= $micend; $x += 3600) {
if ($i == 24) {
break;
}
$result['allrow'][$i]['create_time'] = date('Y-m-d H:i:s', $x) . ' ~ ' . date('Y-m-d H:i:s', $x + 3600);
$sql_jn = "SELECT count(id) as total FROM rha_log_pingan WHERE type = 206 AND pid = 0 AND appkey = 'jn' AND cday = " . date('Ymd', $x) . " AND create_time >= " . $x . " AND create_time < " . ($x + 3600);
$jnRs = $PSys_PinganRule->rensQuery($sql_jn);
$result['allrow'][$i]['jn'] = $jnRs[0]['total'];
$sql_jnx = "SELECT count(id) as total FROM rha_log_pingan WHERE type = 206 AND pid = 0 AND appkey = 'jnx' AND cday = " . date('Ymd', $x) . " AND create_time >= " . $x . " AND create_time < " . ($x + 3600);
$jnxRs = $PSys_PinganRule->rensQuery($sql_jnx);
$result['allrow'][$i]['jnx'] = $jnxRs[0]['total'];
$sql_wf = "SELECT count(id) as total FROM rha_log_pingan WHERE type = 206 AND pid = 0 AND appkey = 'wf' AND cday = " . date('Ymd', $x) . " AND create_time >= " . $x . " AND create_time < " . ($x + 3600);
$wfRs = $PSys_PinganRule->rensQuery($sql_wf);
$result['allrow'][$i]['wf'] = $wfRs[0]['total'];
$sql_zb = "SELECT count(id) as total FROM rha_log_pingan WHERE type = 206 AND pid = 0 AND appkey = 'zb' AND cday = " . date('Ymd', $x) . " AND create_time >= " . $x . " AND create_time < " . ($x + 3600);
$zbRs = $PSys_PinganRule->rensQuery($sql_zb);
$result['allrow'][$i]['zb'] = $zbRs[0]['total'];
$i++;
}
//清空输出缓存
ob_clean();
$objPHPExcel = new PHPExcel();
$objPHPExcel->getProperties()->setCreator("rockhippo")->setLastModifiedBy("jerry")->setTitle("人寿认证保单时段用户数据")->setSubject("人寿数据")->setDescription("")->setKeywords("excel")->setCategory("result file");
$objPHPExcel->setActiveSheetIndex(0)->setCellValue('A1', '日期时段')->setCellValue('B1', '济南')->setCellValue('C1', '济南西')->setCellValue('D1', '潍坊')->setCellValue('E1', '淄博');
foreach ($result['allrow'] as $k => $v) {
$num = $k + 2;
$objPHPExcel->setActiveSheetIndex(0)->setCellValue('A' . $num, $v['create_time'])->setCellValue('B' . $num, $v['jn'])->setCellValue('C' . $num, $v['jnx'])->setCellValue('D' . $num, $v['wf'])->setCellValue('E' . $num, $v['zb']);
}
$objPHPExcel->getActiveSheet()->setTitle('User');
$objPHPExcel->setActiveSheetIndex(0);
$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(50);
$objPHPExcel->getActiveSheet()->getColumnDimension('B')->setWidth(15);
$objPHPExcel->getActiveSheet()->getColumnDimension('C')->setWidth(15);
$objPHPExcel->getActiveSheet()->getColumnDimension('D')->setWidth(15);
$objPHPExcel->getActiveSheet()->getColumnDimension('E')->setWidth(15);
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="人寿认证保单' . $start . '时段用户数据.xls"');
header('Cache-Control: max-age=0');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save('php://output');
exit;
}
示例10: logaddAction
public function logaddAction()
{
$logdetail = reqstr('logdetail', '');
$ipcno = reqstr('ipcno', '');
if (!$logdetail) {
return array('code' => -1);
}
if (!$ipcno) {
return array('code' => -2);
}
$data = array('logdetail' => $logdetail, 'ctime' => time(), 'cip' => real_ip(), 'user' => $this->cur_user['realname'], 'ipcno' => $ipcno);
$m = new Psys_IpcModel();
$res = $m->AddOne($data, 'rha_ipclog');
if ($res > 0) {
$data['id'] = $res;
$data['ctime'] = date('Y-m-d H:i:S', $data['ctime']);
return array('code' => 1, 'data' => $data);
} else {
return array('code' => 0);
}
}
示例11: wifidataweekAction
/**
* 所选时间段范围内的每7天WiFi连接数与注册数
*/
public function wifidataweekAction()
{
$data = reqstr('data');
if (!$data) {
return;
}
$data = urldecode($data);
$info = array();
parse_str($data, $info);
$date = (int) $info['date'] ? (int) $info['date'] : 7;
//默认是查出7天的数据
$sdate = trim($info['sdate']) ? trim($info['sdate']) : '';
$edate = trim($info['edate']) ? trim($info['edate']) : '';
//默认是青岛南
$station = empty($info['station']) ? 1 : implode(',', $info['station']);
if (!$sdate || !$edate) {
$edate = date('Y-m-d');
$sdate = date('Y-m-d', strtotime("-{$date} day"));
}
if ($sdate < '2015-02-01') {
$sdate = '2015-02-01';
}
$isbaifenbi = reqnum('baifenbi', 0);
$dates = $this->cutdate($sdate, $edate);
$nt = new Psys_StationModel();
foreach ($dates as $v_date) {
$res[] = $nt->wifidataweek($station, $v_date['sdate'], $v_date['edate']);
}
$datas[0]['name'] = 'wifi连接数';
$datas[1]['name'] = '注册数';
foreach ($res as $v) {
$result['x_cat'][] = $v['datearea'];
$datas[0]['data'][] = (int) $v['wifi'];
$datas[1]['data'][] = (int) $v['reg'];
if ($isbaifenbi) {
$baifenbis[0]['name'] = '周注册连接百分比';
$b = $v['reg'] / $v['wifi'] * 100;
$baifenbis[0]['data'][] = (double) round($b, 2);
}
}
$result['y_data'] = $datas;
if ($isbaifenbi) {
$result['baifenbi'] = $baifenbis;
}
return $result;
}
示例12: stationeditAction
public function stationeditAction()
{
$model = new Psys_TripModel();
$model->SetDb("db-rht_train");
$ispost = reqnum('ispost', 0);
if ($ispost) {
$id = reqnum('id', 0);
$sno = reqstr('sno');
$fz = reqstr('fz');
$dz = reqstr('dz');
$stime = reqstr('stime');
$dtime = reqstr('dtime');
$dzxh = reqstr('dzxh');
$isdz = reqstr('isdz');
$flag = reqstr('flag');
$appkey = reqstr('appkey');
$data = array('sno' => $sno, 'fz' => $fz, 'dz' => $dz, 'stime' => $stime, 'dtime' => $dtime, 'dzxh' => $dzxh, 'isdz' => $isdz, 'flag' => $flag, 'appkey' => $appkey);
if ($id > 0) {
$where = array('id' => $id);
$re = $model->UpdateOne($data, $where, "rht_station");
$msg = '修改';
} else {
$re = $model->AddOne($data, "rht_station");
$msg = '添加';
}
if ($re) {
echo '<script>alert("' . $msg . '成功,反回列表!");window.location.href="/trip/stlist?trainno=' . $sno . '"</script>';
exit;
}
}
$id = reqnum('id', 0);
$station = array();
if ($id > 0) {
$where = array('id' => $id);
$station = $model->GetOne($where, "*", "rht_station");
$this->smarty->assign('action', 'edit');
} else {
$this->smarty->assign('action', 'add');
}
$this->smarty->assign('station', $station);
$this->forward = "add";
}
示例13: inquiryListAction
/**
* 交易查询列表
*/
public function inquiryListAction()
{
global $G_X;
$page = reqnum('page', 1);
$pagesize = reqnum('pagesize', 10);
$orderguid = reqstr('orderguid', '');
$username = reqstr('username', '');
$producttype = reqnum('producttype', '');
$order = reqnum('order', 0);
//默认为倒序排序
$ifsucc = reqnum('ifsucc', -1);
//默认为全部
$startTime = reqstr('startTime', '');
$endTime = reqstr('endTime', date('Y-m-d H:i:s'));
//判断起始时间是否有值
if ($startTime !== '') {
$startTime = strtotime($startTime);
$endTime = strtotime($endTime);
}
$url = '';
//如果订单号不为空,重组URL
if ($orderguid) {
$url .= '&orderguid=' . $orderguid;
}
//如果用户名不为空,重组URL
if ($username) {
$url .= '&username=' . $username;
}
//如果产品类型不为空,重组URL
if ($producttype) {
$url .= '&producttype=' . $producttype;
}
//如果排序不为空,重组URL
if ($order) {
$url .= '&order=' . $order;
}
//如果起始时间不为空,重组URL
if ($startTime) {
$url .= '&startTime=' . date('Y-m-d H:i:s', $startTime) . '&endTime=' . date('Y-m-d H:i:s', $endTime);
}
//如果状态信息不为空,则查询全部
if ($ifsucc != -1) {
$url .= '&ifsucc=' . $ifsucc;
}
$model = new Psys_FinModel();
$list = $model->inquiryList($orderguid, $username, $producttype, $ifsucc, $order, $startTime, $endTime, $page, $pagesize);
//var_dump($list);exit;
//资源列表
$resModel = new Psys_ResModel();
foreach ($list['allrow'] as &$value) {
$value['ctime'] = date('Y-m-d H:i:s', $value['ctime']);
//下单时间格式转换
$value['cip'] = long2ip($value['cip']);
//下单地址格式转换
if ($value['utime'] != '' || $value['uip'] != '') {
$value['utime'] = date('Y-m-d H:i:s', $value['utime']);
$value['uip'] = long2ip($value['uip']);
}
switch ($value['producttype']) {
case 1:
//视频
$value['producttype'] = $G_X['order_type']['video_type'][1];
$where = array('id' => $value['productid']);
$result = $resModel->GetOneVideo($where);
$value['productid'] = $result['vname'];
break;
case 2:
//音乐
$value['producttype'] = $G_X['order_type']['music_type'][1];
$where = array('id' => $value['productid']);
$result = $resModel->GetOne($where, 'mname', 'rhi_music');
$value['productid'] = $result['mname'];
break;
case 3:
//游戏
$value['producttype'] = $G_X['order_type']['game_type'][1];
$where = array('id' => $value['productid']);
$result = $resModel->GetOneGame($where);
$value['productid'] = $result['appname'];
break;
case 4:
//应用
$value['producttype'] = $G_X['order_type']['app_type'][1];
$where = array('id' => $value['productid']);
$result = $resModel->GetOne($where, 'appname', 'rhi_apps');
$value['productid'] = $result['appname'];
break;
case 10:
//美食
$value['producttype'] = $G_X['order_type']['food_type'][1];
$where = array('id' => $value['productid']);
$result = $resModel->GetOne($where, 'fname', 'rhi_foodish');
$value['productid'] = $result['fname'];
break;
}
}
self::inidate($list['allnum'], $page, $pagesize, count($list['allrow']));
//.........这里部分代码省略.........
示例14: ajaxMonthlymemberHtmlAction
/**
*
* @do ajax 获取月浏览数据
*
* @member public
* @author jerry
* @copyright rockhippo
* @param -
* @return html
*
*/
public function ajaxMonthlymemberHtmlAction()
{
$start = reqstr("start", "");
$end = reqstr("end", "");
$PSys_memberModel = new PSys_PageviewModel();
$where["month_>="] = $start;
$where["month_<="] = $end;
$order = "month ASC";
$result = $PSys_memberModel->GetList($where, $order, 0, 0, "*", "rhc_member_monthly");
$total_active_user = $total_new_user = $total_old_user = 0;
foreach ($result["allrow"] as $k => $v) {
$total_new_user += intval($v["new_user"]);
$total_old_user += intval($v["old_user"]);
$total_active_user += intval($v["active_user"]);
$total_open_num += intval($v["open_num"]);
}
$this->smarty->assign("data", $result["allrow"]);
$this->smarty->assign("total_new_user", $total_new_user);
$this->smarty->assign("total_old_user", $total_old_user);
$this->smarty->assign("total_active_user", $total_active_user);
$this->smarty->assign("total_open_num", $total_open_num);
$this->forward = "ajaxMonthlyMember";
}
示例15: updateAction
/**
* 更新广告位信息
*/
public function updateAction()
{
$ispost = reqnum('ispost', 0);
if ($ispost == 1) {
$id = reqnum('id');
if (!$id) {
echo 'id invalid!';
exit;
}
//广告一
$adsone = reqstr('adsone', '');
//广告二
$adstwo = reqstr('adstwo', '');
$rule = new Psys_AdsRule();
$data = array();
$data['adsone'] = $adsone;
$data['adstwo'] = $adstwo;
$data['utime'] = time();
$flag = $rule->updateStationAds($data, array('id' => $id));
$result = array('result' => 'ERROR');
if ($flag) {
$result['result'] = 'SUCCESS';
}
return $result;
}
}