dataobj = new DataClass(); $this->dataobj->init($this); } public function index() { $sub = ODY_Filter::act(ODY_Req::get('sub')); $gj = ODY_Filter::act(ODY_Req::get('gj')); $cr = ODY_Filter::act(ODY_Req::get('cr')); $where = "status=1 and ptime<'".ODY_Time::getDateTime()."'"; $sub && $where.= " and FIND_IN_SET('{$sub}',centerId)"; $gj && $where.= " and FIND_IN_SET('{$gj}',countryId)"; $cr && $where.= " and FIND_IN_SET('{$cr}',crowds)"; $query = new ODY_Query("zhuanti"); $query->where = $where; $query->fields = "id,imgurl,title,subtitle,top,otherurl,ptime"; $query->order = "top desc,ptime desc"; $query->page = isset($_GET['page']) ? $_GET['page'] : 1; $query->pagesize = 5; $this->list = $query->find(); $this->totalPage = $query->getTotalPage(); $this->data['sub'] = $sub; $this->data['gj'] = $gj; $this->data['cr'] = $cr; $this->data['crowdArr'] = $this->dataobj->getCacheData('crowd'); $this->data['subArr'] = $this->dataobj->getCacheData('sub'); $this->data['countryArr'] = $this->dataobj->getCacheData('country'); $this->dataobj->setListSeo($this->lseo['zhuanti']['seo_title'], $this->lseo['zhuanti']['seo_keywords'], $this->lseo['zhuanti']['seo_desc']); $this->setRenderData($this->data); $this->display('index'); } public function more() { $this->layout=''; $sub = ODY_Filter::act(ODY_Req::get('sub')); $gj = ODY_Filter::act(ODY_Req::get('gj')); $cr = ODY_Filter::act(ODY_Req::get('cr')); $where = "status=1 and ptime<'".ODY_Time::getDateTime()."'"; $sub && $where.= " and FIND_IN_SET('{$sub}',centerId)"; $gj && $where.= " and FIND_IN_SET('{$gj}',countryId)"; $cr && $where.= " and FIND_IN_SET('{$cr}',crowds)"; $query = new ODY_Query("zhuanti"); $query->where = $where; $query->fields = "id,imgurl,title,subtitle,top,otherurl,ptime"; $query->order = "top desc,ptime desc"; $query->page = isset($_GET['page']) ? $_GET['page'] : 2; $query->pagesize = 5; $this->list = $query->find(); $this->totalPage = $query->getTotalPage(); $this->setRenderData($this->data); $this->display('more'); } public function getVercode() { $result = array('isError' => true); $phone = ODY_Filter::act(ODY_Req::get('phone','post')); $text = ODY_Hash::random(6,'int'); $nt = time()+600; $ret = $this->dataobj->sendsms($phone, $text); if($ret=='success') { ODY_Safe::set('smscaptcha', $text.'|'.$nt); $obj_table = new ODY_Model('sms_log'); $obj_table->setData(array('tel'=>$phone,'content'=>$text,'ctime'=> ODY_Time::getDateTime(),'ip'=> ODY_Client::getIp())); $obj_table->add(); $result['message'] = '验证码已发送!'; $result['isError'] = false; echo ODY_JSON::encode($result); die; } $result['message'] = '获取验证码失败,1分钟后再试!'; echo ODY_JSON::encode($result); die; } public function apply() { $result = array('isError' => true); $zid = ODY_Filter::act(ODY_Req::get('zid'),'int'); //$varcode = ODY_Filter::act(ODY_Req::get('varcode','post')); //$varcodeStr = ODY_Safe::get('smscaptcha'); if(!$zid) { $result['message'] = '参数错误!'; echo ODY_JSON::encode($result); die; } //$varcodeArr = explode('|', $varcodeStr);// if(time()>$varcodeArr[1])//// {//// $result['message'] = '验证码已过期,请重新获取!';//// echo ODY_JSON::encode($result);//// die;//// }// if($varcode != $varcodeArr[0])//// {//// $result['message'] = '验证码错误!';//// echo ODY_JSON::encode($result);//// die;//// } $tel = ODY_Filter::act(ODY_Req::get('phone','post')); $dataArray = array( 'realname' =>ODY_Filter::act(ODY_Req::get('name','post')), 'country' => ODY_Filter::act(ODY_Req::get('country','post')), 'city' => ODY_Filter::act(ODY_Req::get('city','post')), 'tel' => $tel, 'zhuantiId' => $zid, 'ctime' => ODY_Time::getDateTime(), 'edu' => ODY_Filter::act(ODY_Req::get('edu','post')), 'major' => ODY_Filter::act(ODY_Req::get('major','post')), 'langscore' => ODY_Filter::act(ODY_Req::get('langscore','post')), 'GPA' => ODY_Filter::act(ODY_Req::get('gpa','post')), 'grade' => ODY_Filter::act(ODY_Req::get('grade','post')), 'learn_major' => ODY_Filter::act(ODY_Req::get('learnmajor','post')), 'qq' => ODY_Filter::act(ODY_Req::get('qq','post')), 'email' => ODY_Filter::act(ODY_Req::get('email','post')), 'wexin' => ODY_Filter::act(ODY_Req::get('wexin','post')), 'remark' => ODY_Filter::act(ODY_Req::get('remark','post')), ); $obj_table = new ODY_Model('message_zhuanti'); $info = $obj_table->getObj("tel = '{$tel}' and zhuantiId=" . $zid); if($info) { $result['message'] = '您已申请过,不能重复提交!'; echo ODY_JSON::encode($result); die; } $obj_table->setData($dataArray); $ret = $obj_table->add(); if(!$ret) { $result['message'] = '提交失败'; echo ODY_JSON::encode($result); die; } ODY_Safe::clear('smscaptcha'); $result['message'] = '提交成功!'; $result['isError'] = false; echo ODY_JSON::encode($result); die; } }
------
errID:256
errStr:zhuanti class file not exists
errFile:ODY_PATH/main.php
errLine:230
errTime:25-07-11 23:18:00
##出错时变量的值:##
array (
  'realpath' => '/data/domains/m.huatong.org/public_html/index.php',
  'controllerId' => 'zhuanti',
  'actionId' => 'index',
)
-------