[8] ErrorException in Service.php line 15

未定义数组索引: type

  1. use think\Url;
  2. use think\facade\Config;
  3. class Service extends Base
  4. {
  5. //筹款第一步
  6. public function aoe(){
  7. $param=request()->param();
  8. if($param['type'] == 1){
  9. $classid=6;
  10. }elseif($param['type'] == 2){
  11. $classid=7;
  12. }elseif($param['type'] == 3){
  13. $classid=8;
  14. }
  15. $info=Db::name("group_type")->where('id',$classid)->field("title,content")->find();
  16. //$about_banner=Db::name('banner')->where('type_id',7)->where('status',1)->field('picurl')->find();

Call Stack

  1. in Service.php line 15
  2. at Error::appError(8, 'Undefined index: typ...', '/www/wwwroot/dite/ap...', 15, ['param' => []]) in Service.php line 15
  3. at Service->aoe()
  4. at ReflectionMethod->invokeArgs(object(Service), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Service), object(ReflectionMethod), []) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.det-design.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME det-design.com
SERVER_PORT 80
SERVER_ADDR 172.16.0.17
REMOTE_PORT 44828
REMOTE_ADDR 34.201.122.150
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/dite/public
DOCUMENT_URI /index.php
REQUEST_URI /home/service/aoe.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/home/service/aoe.html
SCRIPT_FILENAME /www/wwwroot/dite/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711638851.6401
REQUEST_TIME 1711638851
Environment Variablesempty
ThinkPHP Constantsempty