[8] ErrorException in Api.php line 22

Trying to access array offset on value of type null

  1. $this->assign(array(
  2. 'project'=>$project,
  3. ));
  4. $webconfig=db('webconfig')->find();
  5. if (!session('Id') || !session('username') || !session('token')) {
  6. $webconfig['info']='<div class="topMessage home">
  7. <div class="menu-hd"><a href="/" target="_top" class="h"><i class="am-icon-home am-icon-fw"></i>首页</a></div>
  8. </div>
  9. <div class="topMessage my-shangcheng">
  10. <div class="menu-hd MyShangcheng"><a href="__LOGIN__/login.html?redirect_url=__HOST__/docs/api/show/Id/'.$project['Id'].'.html" target="_top"><i class="am-icon-sign-in"></i>登录</a></div>
  11. </div>
  12. <div class="topMessage mini-cart">
  13. <div class="menu-hd"><a id="mc-menu-hd" href="__LOGIN__/register.html?redirect_url=__LOGIN__/login.html?redirect_url=__HOST__/docs/api/show/Id/'.$project['Id'].'.html" target="_top"><i class="am-icon-user-plus"></i>注册</a></div>
  14. </div>';
  15. $webconfig['footer']=' <div class="pay-opt">
  16. <a href="__HOST__"><span class="am-icon-home am-icon-fw">首页</span></a>
  17. <a href="__LOGIN__/register.html?redirect_url=__LOGIN__/login.html?redirect_url=__HOST__/docs/api/show/Id/'.$project['Id'].'.html"><span class="am-icon-user-plus am-icon-fw">注册</span></a>
  18. </div>
  19. <li>

Call Stack

  1. in Api.php line 22
  2. at Error::appError() in Api.php line 22
  3. at Api->show()
  4. at ReflectionMethod->invokeArgs() in App.php line 230
  5. at App::invokeMethod() in App.php line 400
  6. at App::module() in App.php line 138
  7. at App::run() in start.php line 18
  8. at require('/www/wwwroot/softint...') in index.php line 17

Exception Datas

Error Context
project Resource
webconfig { "Id": 1, "webIndex": "https:\/\/www.svip8.vip", "webName": "\u8f6f\u4ef6\u63a5\u53e3\u5e73\u53f0", "webKeywords": "\u8f6f\u4ef6\u63a5\u53e3\u5e73\u53f0,\u6570\u636e\u63a5\u53e3\u5e73\u53f0,api\u63a5\u53e3,\u8f6f\u4ef6\u7ba1\u7406\u7cfb\u7edf,\u6296\u97f3\u53bb\u6c34\u5370\u89e3\u6790\u63a5\u53e3,API\u63a5\u53e3\u5f00\u653e\u5e73\u53f0", "webDescription": "\u8f6f\u4ef6\u63a5\u53e3\u5e73\u53f0,\u8f6f\u4ef6\u63a5\u53e3\u7ba1\u7406\u7cfb\u7edf\uff08www.svip8.vip\uff09\u52b1\u5fd7\u4e0e\u6253\u9020\u5168\u7f51\u72ec\u5bb6\u7535\u8111\u7aef\u548c\u79fb\u52a8\u7aef\u8f6f\u4ef6\u63a5\u53e3\u7ba1\u7406\u548c\u6570\u636e\u7edf\u8ba1\u5206\u6790\u7ba1\u7406\u7684\u7efc\u5408\u5e94\u7528\u5e73\u53f0\uff01", "webTongji": "<script type=\"text\/javascript\">var cnzz_protocol = ((\"https:\" == document.location.protocol) ? \"https:\/\/\" : \"http:\/\/\");document.write(unescape(\"%3Cspan id='cnzz_stat_icon_1262090305'%3E%3C\/span%3E%3Cscript src='\" + cnzz_protocol + \"s22.cnzz.com\/z_stat.php%3Fid%3D1262090305%26online%3D2' type='text\/javascript'%3E%3C\/script%3E\"));<\/script>\r\n<script>\r\n(function(){\r\n var bp = document.createElement('script');\r\n var curProtocol = window.location.protocol.split(':')[0];\r\n if (curProtocol === 'https') {\r\n bp.src = 'https:\/\/zz.bdstatic.com\/linksubmit\/push.js';\r\n }\r\n else {\r\n bp.src = 'http:\/\/push.zhanzhang.baidu.com\/push.js';\r\n }\r\n var s = document.getElementsByTagName(\"script\")[0];\r\n s.parentNode.insertBefore(bp, s);\r\n})();\r\n<\/script>\r\n<a target=\"cyxyv\" href=\"https:\/\/v.yunaq.com\/certificate?domain=www.svip8.vip&from=label&code=90020\"> <img src=\"https:\/\/aqyzmedia.yunaq.com\/labels\/label_sm_90020.png\" style=\"height:60px;width:160px\"><\/a>\r\n", "webLogo": "\/static\/uploads\/img\/20210531\/fde530495c345b7e944cb4cf304444cb.png", "webSubheading": "API\u63a5\u53e3\u5f00\u53d1\u5e73\u53f0|\u8f6f\u4ef6\u6570\u636e\u63a5\u53e3\u5e73\u53f0", "webBeian": "\u7696ICP\u590717009674\u53f7-1", "openRegister": 1, "open": 1 }

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty