#0 [0]Error in User.php line 2197

Call to undefined method app\controller\User::check()

  1. if ($re == true && $re2 == true) {
  2. echo_json('1', '操作成功', '发送成功!', U('User/message', 'type=fa'), '10');
  3. } else {
  4. echo_json('0', '操作失败', '发送失败!', '', '10');
  5. }
  6. }
  7. //内容页中加标签
  8. public function addtag() {
  9. $this->check();
  10. $data['tag'] = D('User')->where('id=' . $_SESSION['uid'])->getField('tag');
  11. $utags = explode(',', $data['tag']);
  12. $data['id'] = $_SESSION['uid'];
  13. if (!empty($_GET['id'])) {
  14. $d = explode('|', $_GET['id']);
  15. $id = $d[0];
  16. $k = $d[1];
  17. $t = D('Article')->where('id=' . $id)->getField('tag');
  18. $tags = explode(',', $t);

Call Stack

  1. in User.php line 2197
  2. at User->addtag()
  3. at ReflectionMethod->invokeArgs(object(User), []) in Container.php line 343
  4. at Container->invokeReflectMethod(object(User), object(ReflectionMethod), []) in Controller.php line 110
  5. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  6. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  7. at Pipeline->then(object(Closure)) in Controller.php line 113
  8. at Controller->exec() in Dispatch.php line 89
  9. at Dispatch->run() in Route.php line 772
  10. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  11. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  12. at Pipeline->then(object(Closure)) in Route.php line 773
  13. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  14. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  15. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  16. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  17. at TraceDebug->handle(object(Request), object(Closure))
  18. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  19. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  20. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  21. at Pipeline->then(object(Closure)) in Http.php line 207
  22. at Http->runWithRequest(object(Request)) in Http.php line 170
  23. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
SCRIPT_URL /index.php
SCRIPT_URI http://www.66885890.com/index.php
HTTP_HOST www.66885890.com
HTTP_X_REAL_IP 54.242.165.255
HTTP_X_FORWARDED_FOR 54.242.165.255
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH G:\instantclient_11_2;G:\app\Administrator\product\11.2.0\client_1;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;.F:\Program Files\Java\jdk1.8.0_321\bin;F:\Program Files\Java\jdk1.8.0_321\jre\bin;f:\app\Administrator\product\11.2.0\dbhome_1\bin;C:\Program Files\HP\NCU;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;F:\php;C:\Program Files\TortoiseSVN\bin;;C:\Program Files (x86)\NTP\bin;
SystemRoot C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.26 (Win64) PHP/8.0.7
SERVER_NAME www.66885890.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT F:/webdemo/www/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT F:/webdemo/www/public
SERVER_ADMIN admin@example.com
SCRIPT_FILENAME F:/webdemo/www/public/index.php
REMOTE_PORT 24121
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING s=/user/addtag.html
REQUEST_URI /index.php?s=/user/addtag.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711722914.1736
REQUEST_TIME 1711722914
0.140400s