[8] ErrorException in Exam.php line 184

未定义索引: userid

  1. public function moniexam() //模拟考试页面 moniexam
  2. {
  3. global $C;
  4. $canshu = input("param.");
  5. if(!isset($_COOKIE["userid"])){
  6. // $this->error("您还没有登录,请先登录!");
  7. echo '<script>alert("请先登录!");window.location.href = "http://www.wdunncpa.com/" </script>';
  8. // echo '<script>alert("请先登录!"); window.location.href="'.url('Index/index').'"; </script>';
  9. }
  10. $canshu["userid"] = $_COOKIE["userid"];
  11. //调取模拟考试记录数据
  12. // $shijuaninfo = apidata("personal/moniexam_list",$canshu);
  13. // $this->assign("shijuaninfo",$shijuaninfo['data']);
  14. $courses = apidata("user/my_courses",$canshu);
  15. // echo '<pre>';
  16. // print_r($courses);die;
  17. if(empty($courses)){
  18. echo '<script>alert("你还未报名项目,需要报名后进行模拟考试"); window.location.href = "http://www.wdunncpa.com/index.php/train/traindex?categoryid=4&category=%E5%9F%B9%E8%AE%AD%E9%A1%B9%E7%9B%AE"</script>';

Call Stack

  1. in Exam.php line 184
  2. at Error::appError(8, 'Undefined index: use...', '/alidata1/wwwroot/ww...', 184, ['C' => ['_basic.sitename' => '...', '_basic.shortname' => '...', '_basic.siteurl' => 'http://www.bjraxfxx....', ...], 'canshu' => []]) in Exam.php line 184
  3. at Exam->moniexam()
  4. at ReflectionMethod->invokeArgs(object(Exam), []) in App.php line 235
  5. at App::invokeMethod([object(Exam), 'moniexam']) in App.php line 354
  6. at App::module(['pc', 'exam', 'moniexam'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 133
  7. at App::run() in start.php line 18
  8. at require('/alidata1/wwwroot/ww...') in DuihaoJO.php line 25
  9. at require('/alidata1/wwwroot/ww...') in index.php line 23

Exception Datas

Error Context
C { "_basic.sitename": "\u5317\u4eac\u5e02\u878d\u5b89\u6d88\u9632\u5b66\u6821", "_basic.shortname": "\u5317\u4eac\u5e02\u878d\u5b89\u6d88\u9632\u5b66\u6821", "_basic.siteurl": "http:\/\/www.wdunncpa.com\/", "_basic.logo": "\/upload\/image\/20180809\/1533794042839187.png", "_basic.icp": "\u4eacICP\u590716008418\u53f7-1", "_basic.email": "wxw315@vip.sina.com", "_basic.phone": "400-6336-119", "_basic.aboutus": "111", "_basic.agreement": "", "_basic.copyright": "Copyright \u5317\u4eac\u5e02\u878d\u5b89\u6d88\u9632\u804c\u4e1a\u6280\u80fd\u57f9\u8bad\u5b66\u6821 \u00a9 1998 - 2018", "_basic.keyworddrop": "\u4e60\u8fd1\u5e73 \u6c5f\u6cfd\u6c11 \u674e\u514b\u5f3a \u80e1\u9526\u6d9b \u4e2d\u5171 \u90ed\u6587\u8d35 ", "_basic.sitetitle": "\u5317\u4eac\u5e02\u878d\u5b89\u6d88\u9632\u804c\u4e1a\u6280\u80fd\u57f9\u8bad\u5b66\u6821", "_basic.claim": "<p><br\/><\/p><p>\u5185\u5bb9\u7ea0\u9519\uff1a\u5982\u60a8\u53d1\u73b0\u5185\u5bb9\u4e0a\u5b58\u5728\u95ee\u9898\u8bf7\u8054\u7cfb\uff0c\u90ae\u7bb1\uff1a<\/p>", "_basic.seo_keywords": "\u5317\u4eac\u5e02\u878d\u5b89\u6d88\u9632\u804c\u4e1a\u6280\u80fd\u57f9\u8bad\u5b66\u6821 \u878d\u5b89\u6d88\u9632\u5b66\u6821 \u878d\u5b89\u6d88\u9632 \u878d\u5b89 \u4e2d\u63a7\u5458 \u6d88\u9632\u5458 \u6d88\u9632\u8bbe\u65bd\u64cd\u4f5c\u5458 \u6d88\u9632\u5b89\u5168\u57f9\u8bad \u6ce8\u518c\u6d88\u9632\u5de5\u7a0b\u5e08\u57f9\u8bad", "_basic.seo_description": "\u5317\u4eac\u5e02\u878d\u5b89\u6d88\u9632\u804c\u4e1a\u6280\u80fd\u57f9\u8bad\u5b66\u6821\u6210\u7acb\u4e8e2008\u5e746\u6708\uff0c\u4e13\u95e8\u4ece\u4e8b\u5efa\uff08\u6784\uff09\u7b51\u7269\u6d88\u9632\u5458\u521d\u3001\u4e2d\u7ea7\u8d44\u683c\u57f9\u8bad\uff0c\u5e76\u4e8e2014\u5e746\u6708\uff0c\u5728\u5317\u6c99\u6ee9\u6559\u5b66\u70b9\u6b63\u5f0f\u5f00\u8bbe\u56fd\u5bb6\u9996\u6279\u4e00\u3001\u4e8c\u7ea7\u6ce8\u518c\u6d88\u9632\u5de5\u7a0b\u5e08\u8003\u524d\u57f9\u8bad\uff0c\u4e3a\u5e7f\u5927\u5b66\u5458\u63d0\u4f9b\u4e86\u66f4\u9ad8\u5c42\u6b21\u7684\u5b66\u4e60\u5e73\u53f0\u3002\u662f\u5168\u56fd\u7b2c\u4e00\u5bb6\u6d88\u9632\u4e13\u4e1a\u57f9\u8bad\u8bd5\u70b9\u5b66\u6821\uff0c\u7b2c\u4e00\u4e2a\u6d88\u9632\u884c\u4e1a\u7279\u6709\u5de5\u79cd\u804c\u4e1a\u6280\u80fd\u9274\u5b9a\uff08\u5317\u4eac\uff09\u7ad9\u6388\u6743\u7684\u9274\u5b9a\u70b9\uff0c\u662f\u6d88\u9632\u884c\u4e1a\u5185\u6743\u5a01\u7684\u3001\u5317\u4eac\u5e02\u5b98\u65b9\u7684\u6d88\u9632\u4e2d\u63a7\u57f9\u8bad\u5b66\u6821\u3002", "_basic.protocolAndClause": "<hr\/><p>\u5728\u6ce8\u518c\u524d\u8bf7\u5148\u9605\u8bfb\u4ee5\u4e0b\u534f\u8bae<br\/><\/p><p>\u4e00\u3001\u4e0d\u5f97\u5229\u7528\u672c\u7ad9\u5371\u5bb3\u56fd\u5bb6\u5b89\u5168\u3001\u6cc4\u9732\u56fd\u5bb6\u79d8\u5bc6\uff0c\u4e0d\u5f97\u4fb5\u72af\u56fd\u5bb6\u793e\u4f1a\u96c6\u4f53\u7684\u548c\u516c\u6c11\u7684\u5408\u6cd5\u6743\u76ca\uff0c\u4e0d\u5f97\u5229\u7528\u672c\u7ad9\u5236\u4f5c\u3001\u590d\u5236\u548c\u4f20\u64ad\u4e0b\u5217\u4fe1\u606f\uff1a<\/p><p>\uff08\u4e00\uff09\u717d\u52a8\u6297\u62d2\u3001\u7834\u574f\u5baa\u6cd5\u548c\u6cd5\u5f8b\u3001\u884c\u653f\u6cd5\u89c4\u5b9e\u65bd\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u4e8c\uff09\u717d\u52a8\u98a0\u8986\u56fd\u5bb6\u653f\u6743\uff0c\u63a8\u7ffb\u793e\u4f1a\u4e3b\u4e49\u5236\u5ea6\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u4e09\uff09\u717d\u52a8\u5206\u88c2\u56fd\u5bb6\u3001\u7834\u574f\u56fd\u5bb6\u7edf\u4e00\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u56db\uff09\u717d\u52a8\u6c11\u65cf\u4ec7\u6068\u3001\u6c11\u65cf\u6b67\u89c6\uff0c\u7834\u574f\u6c11\u65cf\u56e2\u7ed3\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u4e94\uff09\u634f\u9020\u6216\u8005\u6b6a\u66f2\u4e8b\u5b9e\uff0c\u6563\u5e03\u8c23\u8a00\uff0c\u6270\u4e71\u793e\u4f1a\u79e9\u5e8f\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u516d\uff09\u5ba3\u626c\u5c01\u5efa\u8ff7\u4fe1\u3001\u6deb\u79fd\u3001\u8272\u60c5\u3001\u8d4c\u535a\u3001\u66b4\u529b\u3001\u51f6\u6740\u3001\u6050\u6016\u3001\u6559\u5506\u72af\u7f6a\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u4e03\uff09\u516c\u7136\u4fae\u8fb1\u4ed6\u4eba\u6216\u8005\u634f\u9020\u4e8b\u5b9e\u8bfd\u8c24\u4ed6\u4eba\u7684\uff0c\u6216\u8005\u8fdb\u884c\u5176\u4ed6\u6076\u610f\u653b\u51fb\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u516b\uff09\u635f\u5bb3\u56fd\u5bb6\u673a\u5173\u4fe1\u8a89\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u4e5d\uff09\u5176\u4ed6\u8fdd\u53cd\u5baa\u6cd5\u548c\u6cd5\u5f8b\u884c\u653f\u6cd5\u89c4\u7684\uff1b<br\/>\r\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u5341\uff09\u53d1\u5e03\u9ec4\u8272\u53cd\u52a8\u6587\u7ae0<\/p><p>\u4e8c\u3001\u4e92\u76f8\u5c0a\u91cd\uff0c\u5bf9\u81ea\u5df1\u7684\u8a00\u8bba\u548c\u884c\u4e3a\u8d1f\u8d23\u3002<\/p><p><br\/><\/p>", "_basic.complaintsProcedure": "<p>\u5185\u5bb9\u66f4\u65b0\u4e2d\u3002\u3002\u3002<br\/><\/p>", "_fileup.allowext": "doc,docx,ppt,pptx", "_fileup.maxsize": "2048", "_fileup.video_allowext": "mp4,flv,swf,avi,rmvb,rm,mpeg,mpg,mkv,ogg,ogv,mov,wmv,webm,mp3,wav,mid", "_fileup.video_maxsize": "20480", "_fileup.audio_allowext": "mp3", "_fileup.audio_maxsize": "4096", "_fileup.image_allowext": "jpg,png,gif,bmp,jpeg", "_fileup.image_maxsize": "2048", "_fileup.ftpupfile": "0", "_fileup.ftpserver": "", "_fileup.ftpport": "", "_fileup.ftpuser": "", "_fileup.ftppass": "", "_fileup.qiniu": "0", "_fileup.qiniu_access_key": "", "_fileup.qiniu_secret_key": "", "_fileup.qcloud": "0", "_fileup.qcloud_appid": "", "_fileup.qcloud_secretid": "", "_fileup.qcloud_secretkey": "", "_fileup.watermark": "\/upload\/image\/20171223\/1514028071438179.png", "_fileup.waterpos": "9", "_fileup.waterposwt": "10|10", "_sms.sms_status": "1", "_sms.sms_userid": "5324", "_sms.sms_username": "a10123", "_sms.sms_password": "156647", "_sms.sms_sign": "\u3010\u878d\u5b89\u6d88\u9632\u5b66\u6821\u3011", "_sms.sms_yzm_status": "1", "_sms.sms_template_yzm": "\u60a8\u7684\u9a8c\u8bc1\u7801\u662f\u3010\u53c2\u6570\u3011\uff0c\u8bf7\u4e0d\u8981\u6cc4\u9732\u7ed9\u5176\u4ed6\u4eba\uff0c\u5e76\u8bf7\u5c3d\u5feb\u4f7f\u7528\u3002\u3010\u5bf9\u53f7\u79d1\u6280\u3011", "_sms.sms_orderadd_status": "0", "_sms.sms_orderadd_template": "", "_sms.sms_fahuo_status": "0", "_sms.sms_fahuo_template": "", "_sms.sms_accountSid": "8a216da86010e690016029dc77390928", "_sms.sms_accountToken": "7df70db55a12451985e4bda549192036", "_sms.sms_appId": "8a216da86010e690016029dc7793092f", "_sms.sms_yzm_tempId": "226081", "_sms.sms_yzm_timeLimit": "5", "_pay.wxpay_status": "0", "_pay.wxpay_mchid": "", "_pay.wxpay_key": "", "_pay.alipay_status": "0", "_pay.alipay_seller_email": "", "_pay.alipay_partner": "", "_pay.facepay": "0", "_pay.shuilv_status": "0", "_pay.shuilv": "0.06", "_weixin.wx_qrcode": "\/apps\/weixin\/public\/img\/qrcode.jpg", "_weixin.wx_appid": "wx1fa169441c9dc90b", "_weixin.wx_appsecret": "37b575235ccaef3d1aa620bbdcf47ee8", "_weixin.wx_token": "faL1SR82dqtaL8Lc5TDK5QsCSac102Q8", "_weixin.wx_login_appid": "wx2f98000732d917a4", "_weixin.wx_login_appsecret": "3340fc53bbc486037400974327245899", "_weixin.wx_template_orderadd": "", "_weixin.wx_template_fahuo": "", "_app.cur_versionid": "1.0.0.0", "_app.apk_android": "", "_app.ios_cur_versionid": "1.0.0.0", "_app.apk_ios": "", "_page.html_root": "html\/", "_page.rows": "12", "_page.news_details_thumb": "\/upload\/image\/20171221\/1513843457965358.jpg", "_page.wx_attention": "https:\/\/mp.weixin.qq.com\/mp\/profile_ext?action=home&__biz=MzA3NDg2NzgzOQ==&scene=124#wechat_redirect", "_exam.type": "7", "_exam.exam_time": "100", "_exam.jige": "60", "_exam._paramchange": "", "_exam.tiku_bili": "\u521d\u7ea7|20%\r\n\u4e2d\u7ea7|80%", "_exam.exam_timu": "{\"\\u5355\\u9009\\u9898\":{\"num\":\"100\",\"fen\":\"0.5\"},\"\\u591a\\u9009\\u9898\":{\"num\":\"40\",\"fen\":\"0.5\"},\"\\u5224\\u65ad\\u9898\":{\"num\":\"60\",\"fen\":\"0.5\"}}" }
canshu []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
refer http://www.wdunncpa.com/index.php/exam/moniexam
Sessionempty
Server/Request Data
TEMP /tmp
TMPDIR /tmp
TMP /tmp
PATH /usr/local/bin:/usr/bin:/bin
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /alidata1/wwwroot/www.wdunncpa.com/index.php
QUERY_STRING s=/exam/moniexam
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /index.php/exam/moniexam
DOCUMENT_URI /index.php
DOCUMENT_ROOT /alidata1/wwwroot/www.wdunncpa.com
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.14.0
REMOTE_ADDR 39.96.130.98
REMOTE_PORT 61478
SERVER_ADDR 172.26.115.190
SERVER_PORT 80
SERVER_NAME www.wdunncpa.com
REDIRECT_STATUS 200
HTTP_HOST www.wdunncpa.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0); 360Spider(compatible; HaosouSpider; http://www.haosou.com/help/help_3_2.html)
HTTP_X_TRUE_IP 45.35.226.74
HTTP_X_REAL_IP 45.35.226.74
HTTP_WEB_SERVER_TYPE nginx
HTTP_WL_PROXY_CLIENT_IP 45.35.226.74
HTTP_X_FORWARDED_FOR 45.35.226.74
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_CLUSTER waf,
HTTP_EAGLEEYE_TRACEID 2760826215724432332961879eb67c
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT */*
HTTP_EAGLEEYE_RPCID 0.1
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1572443233.3049
REQUEST_TIME 1572443233
PATH_INFO /exam/moniexam
Environment Variablesempty
ThinkPHP Constants
BIND_MODULE pc
APP_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../apps/
RUNTIME_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../runtime/
APP_DEBUG true
DUIHAO_ROOT /alidata1/wwwroot/www.wdunncpa.com/
MICROTIME_START 0.30539500 1572443233
IN_DUIHAO true
MAGIC_QUOTES_GPC false
TIME 1572443233
EXT_DIR /alidata1/wwwroot/www.wdunncpa.com/extend/
CACHE_DIR /alidata1/wwwroot/www.wdunncpa.com/runtime/cache/
APP_DIR /alidata1/wwwroot/www.wdunncpa.com/apps/
ADMIN_DIR /alidata1/wwwroot/www.wdunncpa.com/apps/admin/
DB_HOST rm-8vbp93t1q6309y708.mysql.zhangbei.rds.aliyuncs.com
DB_USER bjraxfxx
DB_PW q6309Y708#$%vbp93t1
DB_NAME ronganxiaofang_db
DB_PRE jo3_
DB_CHARSET utf8
DB_PCONNECT 0
DB_DATABASE mysql
COOKIE_PATH /
COOKIE_PRE dSBmnAEGLK
COOKIE_TTL 36000
APIURL http://www.wdunncpa.com/api.php/
THINK_VERSION 5.0.0 RC4
THINK_START_TIME 1572443233.3074
THINK_START_MEM 508392
EXT .php
DS /
THINK_PATH /alidata1/wwwroot/www.wdunncpa.com/framework/
LIB_PATH /alidata1/wwwroot/www.wdunncpa.com/framework/library/
CORE_PATH /alidata1/wwwroot/www.wdunncpa.com/framework/library/think/
TRAIT_PATH /alidata1/wwwroot/www.wdunncpa.com/framework/library/traits/
ROOT_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../
EXTEND_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../extend/
VENDOR_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../vendor/
LOG_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../runtime/log/
CACHE_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../runtime/cache/
TEMP_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../runtime/temp/
CONF_PATH /alidata1/wwwroot/www.wdunncpa.com/include/../apps/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
UPLOAD_ROOT /upload/