8188cc威尼斯(中国)有限公司

[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/www.lia...', 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' => '25', '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
_d_id 83ab02355bf579516109117393e68d
PHPSESSID jotp6tgrju1a44ddovv9pdbf49
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE _d_id=83ab02355bf579516109117393e68d; PHPSESSID=jotp6tgrju1a44ddovv9pdbf49
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.liangchenghui.cn
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.liangchenghui.cn
SERVER_PORT 80
SERVER_ADDR 10.206.16.16
REMOTE_PORT 39814
REMOTE_ADDR 45.39.65.162
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.liangchenghui.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /ForFactory-25/index.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/ForFactory-25/index.html
SCRIPT_FILENAME /www/wwwroot/www.liangchenghui.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1734832250.7515
REQUEST_TIME 1734832250
Environment Variablesempty
ThinkPHP Constants
ADDON_PATH /www/wwwroot/www.liangchenghui.cn/addons/