[8] ErrorException in common.php line 308

未定义变量: url

  1. //$home_rote[''.$v['catdir'].'-:catId/:id'] = 'home/'.$v['catdir'].'/index';
  2. $cate = Db::name('cate')->field('id,catdir,moduleid')->where('id',$v['catid'])->find();
  3. $moduleurl = Db::name('module')->where('id',$cate['moduleid'])->value('name');
  4. if($cate['catdir']){
  5. $url = url(request()->module().'/'.$cate['catdir'].'/info', ['catId'=>$cate['id'],'id'=>$v['id']]);
  6. }else{
  7. $url = url(request()->module().'/'.$moduleurl.'/info', ['catId'=>$cate['id'],'id'=>$v['id']] );
  8. }
  9. }
  10. return $url;
  11. }
  12. //获取所有模版
  13. function getTemplate(){
  14. //查找设置的模版
  15. $system = Db::name('system')->where('id',1)->find();
  16. $path = './template/home/'.$system['template'].'/'.$system['html'].'/';
  17. $tpl['list'] = get_file_folder_List($path , 2, '*_list*');
  18. $tpl['show'] = get_file_folder_List($path , 2, '*_show*');

Call Stack

  1. in common.php line 308
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/sycms.z...', 308, ['v' => null]) in common.php line 308
  3. at getShowUrl(null) in Error.php line 110
  4. at Error->info()
  5. at ReflectionMethod->invokeArgs(object(Error), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), ['catId' => '21', 'id' => 'index', 'convert' => false]) in Module.php line 131
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID qi6t7sm33adgesnhfj8hf8j2g3
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/sycms.zhongdoutech.com/public/index.php
QUERY_STRING s=/customer-21/index.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /customer-21/index.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/sycms.zhongdoutech.com/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.17.10
REMOTE_ADDR 172.252.198.2
REMOTE_PORT 41658
SERVER_ADDR 172.19.178.208
SERVER_PORT 80
SERVER_NAME sycms.zhongdoutech.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST www.zhongdoukeji.com
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_COOKIE PHPSESSID=qi6t7sm33adgesnhfj8hf8j2g3
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1669211369.5981
REQUEST_TIME 1669211369
Environment Variablesempty
ThinkPHP Constants
ADDON_PATH /www/wwwroot/sycms.zhongdoutech.com/addons/