首页 > 手游教程 > 手游攻略 > 黑神话悟空IGN打分8/10

黑神话悟空IGN打分8/10

WBOY
发布: 2024-08-20 14:36:16
原创
582 人浏览过

[10501] PDOException in Connection.php line 385

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't m e a n i t ’ s a n y l e s s d i f f i c u l t . ( you xi de ku' at line 1

<ol start="376">
<li class="line-376"><code>            $this->PDOStatement->execute();
</code></li>
<li class="line-377"><code>            // 调试结束
</code></li>
<li class="line-378"><code>            $this->debug(false, '', $master);
</code></li>
<li class="line-379"><code>            // 返回结果集
</code></li>
<li class="line-380"><code>            return $this->getResult($pdo, $procedure);
</code></li>
<li class="line-381"><code>        } catch (\PDOException $e) {
</code></li>
<li class="line-382"><code>            if ($this->isBreak($e)) {
</code></li>
<li class="line-383"><code>                return $this->close()->query($sql, $bind, $master, $pdo);
</code></li>
<li class="line-384"><code>            }
</code></li>
<li class="line-385"><code>            throw new PDOException($e, $this->config, $this->getLastsql());
</code></li>
<li class="line-386"><code>        } catch (\Throwable $e) {
</code></li>
<li class="line-387"><code>            if ($this->isBreak($e)) {
</code></li>
<li class="line-388"><code>                return $this->close()->query($sql, $bind, $master, $pdo);
</code></li>
<li class="line-389"><code>            }
</code></li>
<li class="line-390"><code>            throw $e;
</code></li>
<li class="line-391"><code>        } catch (\Exception $e) {
</code></li>
<li class="line-392"><code>            if ($this->isBreak($e)) {
</code></li>
<li class="line-393"><code>                return $this->close()->query($sql, $bind, $master, $pdo);
</code></li>
<li class="line-394"><code>            }
</code></li>
</ol>
登录后复制

Call Stack

  1. in Connection.php line 385
  2. at Connection->query()
  3. at call_user_func_array() in Db.php line 178
  4. at Db::__callStatic() in Index.php line 150
  5. at Index->fanyi_article_content()
  6. at ReflectionMethod->invokeArgs() in App.php line 343
  7. at App::invokeMethod() in App.php line 611
  8. at App::module() in App.php line 456
  9. at App::exec() in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/data/wwwroot/td.880...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 42000
Driver Error Code 1064
Driver Error Message You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't m e a n i t ’ s a n y l e s s d i f f i c u l t . ( you xi de ku' at line 1
Database Status
Error Code 10501
Error Message SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't m e a n i t ’ s a n y l e s s d i f f i c u l t . ( you xi de ku' at line 1
Error SQL SELECT name, MATCH(pinyin) AGAINST('zuo wei you xi ke xue gong si de shou kuan dong zuo you xi , hei shen hua wu kong zai I G N huo de 8 / 1 0 de da fen , zong ti shang qu de le ju da de cheng gong 。 jin guan zai fa bu shi cun zai yi xie zhong da de ji shu que xian he ben di hua wen ti , ke neng hui zao cheng yi xie cuo bai gan , dan hei shen hua wu kong yi ran dai chu you yi de biao xian 。 zhan dou fei chang jing cai , zhe yao gui gong yu jing xin de zi yuan guan li he shan dian ban kuai su 、 fan ying ling min de you xi wan fa zhi jian de liang hao ping heng , jin guan ta bi F r o m S o f t w a r e de feng ge geng chuan tong , dan ta kao yan le wo de ji neng , jiu xiang ai er deng fa huan yi yang 。 bu jin ru ci , you xi zhong hai you da liang ji dong ren xin de B o s s zhan 、 ge zhong ge yang de di ren , ta men suo ju zhu de shi jie jue dui shi yi chang shi jiao he ting jiao de sheng yan 。 ta de gu shi you ta de liang dian , dan you dian guo yu yi lai yu dui xi you ji shi jian de shi xian le jie , ta zhen de ke yi shi yong di tu lai shi qi you yi de tan suo yu qi zhan dou shi li xiang pi pei 。 hua sui ru ci , ta de you shi yuan yuan chao guo le ta , shi hei shen hua wu kong cheng wei yi kuan chu se de dong zuo you xi , ru guo you xi ke xue gong si neng gou xiao chu cuo wu , ta ke neng hui bian de geng hao 。 yi xia shi bu fen lao wai wan jia you wan le hei shen hua wu kong hou de gan xiang : 1 . A g r e a t a c t i o n g a m e w i t h f a n t a s t i c c o m b a t , e x c i t i n g b o s s e s , a n d a f e w t o o m a n y b u g s . ( zhe shi yi kuan chu se de dong zuo you xi , zhan dou jing cai , B O S S ci ji , dan lou dong you dian duo 。 ) 2 . I t ’ s m o r e f o r g i v i n g , b u t t h a t d o e s n ' t m e a n i t ’ s a n y l e s s d i f f i c u l t . ( you xi de kuan rong du geng gao , dan zhe bing bu yi wei zhe nan du hui jiang di 。 ) 3 . T h e r e i s a n e x c e l l e n t b l e n d o f d i f f e r e n t c o m b a t o p t i o n s . ( bu tong zhan dou xuan xiang de wan mei rong he 。 ) 4 . W u k o n g i s o n e o f t h e m o s t g o r g e o u s g a m e s I ’ v e e v e r p l a y e d . ( wu kong shi wo wan guo de zui hua li de you xi zhi yi 。 ) 5 . I w o u l d l o v e t o b e a b l e t o r e c o m m e n d i t w i t h o u t t h e t e c h n i c a l c a v e a t s . ( wo hen le yi tui jian zhe kuan you xi , wu xu dan xin ji shu wen ti 。 )' IN NATURAL LANGUAGE MODE) AS similarity FROM ad_download_lang WHERE MATCH(pinyin) AGAINST('zuo wei you xi ke xue gong si de shou kuan dong zuo you xi , hei shen hua wu kong zai I G N huo de 8 / 1 0 de da fen , zong ti shang qu de le ju da de cheng gong 。 jin guan zai fa bu shi cun zai yi xie zhong da de ji shu que xian he ben di hua wen ti , ke neng hui zao cheng yi xie cuo bai gan , dan hei shen hua wu kong yi ran dai chu you yi de biao xian 。 zhan dou fei chang jing cai , zhe yao gui gong yu jing xin de zi yuan guan li he shan dian ban kuai su 、 fan ying ling min de you xi wan fa zhi jian de liang hao ping heng , jin guan ta bi F r o m S o f t w a r e de feng ge geng chuan tong , dan ta kao yan le wo de ji neng , jiu xiang ai er deng fa huan yi yang 。 bu jin ru ci , you xi zhong hai you da liang ji dong ren xin de B o s s zhan 、 ge zhong ge yang de di ren , ta men suo ju zhu de shi jie jue dui shi yi chang shi jiao he ting jiao de sheng yan 。 ta de gu shi you ta de liang dian , dan you dian guo yu yi lai yu dui xi you ji shi jian de shi xian le jie , ta zhen de ke yi shi yong di tu lai shi qi you yi de tan suo yu qi zhan dou shi li xiang pi pei 。 hua sui ru ci , ta de you shi yuan yuan chao guo le ta , shi hei shen hua wu kong cheng wei yi kuan chu se de dong zuo you xi , ru guo you xi ke xue gong si neng gou xiao chu cuo wu , ta ke neng hui bian de geng hao 。 yi xia shi bu fen lao wai wan jia you wan le hei shen hua wu kong hou de gan xiang : 1 . A g r e a t a c t i o n g a m e w i t h f a n t a s t i c c o m b a t , e x c i t i n g b o s s e s , a n d a f e w t o o m a n y b u g s . ( zhe shi yi kuan chu se de dong zuo you xi , zhan dou jing cai , B O S S ci ji , dan lou dong you dian duo 。 ) 2 . I t ’ s m o r e f o r g i v i n g , b u t t h a t d o e s n ' t m e a n i t ’ s a n y l e s s d i f f i c u l t . ( you xi de kuan rong du geng gao , dan zhe bing bu yi wei zhe nan du hui jiang di 。 ) 3 . T h e r e i s a n e x c e l l e n t b l e n d o f d i f f e r e n t c o m b a t o p t i o n s . ( bu tong zhan dou xuan xiang de wan mei rong he 。 ) 4 . W u k o n g i s o n e o f t h e m o s t g o r g e o u s g a m e s I ’ v e e v e r p l a y e d . ( wu kong shi wo wan guo de zui hua li de you xi zhi yi 。 ) 5 . I w o u l d l o v e t o b e a b l e t o r e c o m m e n d i t w i t h o u t t h e t e c h n i c a l c a v e a t s . ( wo hen le yi tui jian zhe kuan you xi , wu xu dan xin ji shu wen ti 。 )' IN NATURAL LANGUAGE MODE) ORDER BY similarity DESC limit 200
Database Config
type mysql
hostname localhost
database td.880772.xyz
hostport
dsn
params []
charset utf8mb4
prefix ad_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty

POST Data

content
%3Cp%3E%E4%BD%9C%E4%B8%BA%E6%B8%B8%E6%88%8F%E7%A7%91%E5%AD%A6%E5%85%AC%E5%8F%B8%E7%9A%84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E4%B9%8B%E9%97%B4%E7%9A%84%E8%89%AF%E5%A5%BD%E5%B9%B3%E8%A1%A1%EF%BC%8C%3C%2Fp%3E%3Cp%3E%E5%B0%BD%E7%AE%A1%E5%AE%83%E6%AF%94+FromSoftware+%E7%9A%84%E9%A3%8E%E6%A0%BC%E6%9B%B4%E4%BC%A0%E7%BB%9F%EF%BC%8C%E4%BD%86%E5%AE%83%E8%80%83%E9%AA%8C%E4%BA%86%E6%88%91%E7%9A%84%E6%8A%80%E8%83%BD%EF%BC%8C%E5%B0%B1%E5%83%8F%E8%89%BE%E5%B0%94%E7%99%BB%E6%B3%95%E7%8E%AF%E4%B8%80%E6%A0%B7%E3%80%82%3C%2Fp%3E%3Cp%3E%3Cimg+src%3D%22https%3A%2F%2Fimg.php.cn%2Fupload%2Farticle%2F000%2F000%2F000%2F172413577851185.jpg%22+alt%3D%22%E9%BB%91%E7%A5%9E%E8%AF%9D%E6%82%9F%E7%A9%BAIGN%E6%89%93%E5%88%868%2F10%22+%2F%3E%3C%2Fp%3E%3Cp%3E%E4%B8%8D%E4%BB%85%E5%A6%82%E6%AD%A4%EF%BC%8C%E6%B8%B8%E6%88%8F%E4%B8%AD%E8%BF%98%E6%9C%89%E5%A4%A7%E9%87%8F%E6%BF%80%E5%8A%A8%E4%BA%BA%E5%BF%83%E7%9A%84+Boss+%E6%88%98%E3%80%81%E5%90%84%E7%A7%8D%E5%90%84%E6%A0%B7%E7%9A%84%E6%95%8C%E4%BA%BA%EF%BC%8C%E4%BB%96%E4%BB%AC%E6%89%80%E5%B1%85%E4%BD%8F%E7%9A%84%E4%B8%96%E7%95%8C%E7%BB%9D%E5%AF%B9%E6%98%AF%E4%B8%80%E5%9C%BA%E8%A7%86%E8%A7%89%E5%92%8C%E5%90%AC%E8%A7%89%E7%9A%84%E7%9B%9B%E5%AE%B4%E3%80%82%3C%2Fp%3E%3Cp%3E%E5%AE%83%E7%9A%84%E6%95%85%E4%BA%8B%E6%9C%89%E5%AE%83%E7%9A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000%2F000%2F172413577944480.jpg%22+alt%3D%22%E9%BB%91%E7%A5%9E%E8%AF%9D%E6%82%9F%E7%A9%BAIGN%E6%89%93%E5%88%868%2F10%22+%2F%3E%3C%2Fp%3E%3Cp%3E%E4%BB%A5%E4%B8%8B%E6%98%AF%E9%83%A8%E5%88%86%E8%80%81%E5%A4%96%E7%8E%A9%E5%AE%B6%E6%B8%B8%E7%8E%A9%E4%BA%86%E9%BB%91%E7%A5%9E%E8%AF%9D%E6%82%9F%E7%A9%BA%E5%90%8E%E7%9A%84%E6%84%9F%E6%83%B3%EF%BC%9A%3C%2Fp%3E%3Cp%3E1.+A+great+action+game+with+fantastic+combat%2C+exciting+bosses%2C+and+a+few+too+many+bugs.%3C%2Fp%3E%3Cp%3E%EF%BC%88%E8%BF%99%E6%98%AF%E4%B8%80%E6%AC%BE%E5%87%BA%E8%89%B2%E7%9A%84%E5%8A%A8%E4%BD%9C%E6%B8%B8%E6%88%8F%EF%BC%8C%E6%88%98%E6%96%97%E7%B2%BE%E5%BD%A9%EF%BC%8CBOSS+%E5%88%BA%E6%BF%80%EF%BC%8C%E4%BD%86%E6%BC%8F%E6%B4%9E%E6%9C%89%E7%82%B9%E5%A4%9A%E3%80%82%EF%BC%89%3C%2Fp%3E%3Cp%3E2.+It%E2%80%99s+more+forgiving%2C+but+that+doesn%27t+mean+it%E2%80%99s+any+less+difficult.%3C%2Fp%3E%3Cp%3E%EF%BC%88%E6%B8%B8%E6%88%8F%E7%9A%84%E5%AE%BD%E5%AE%B9%E5%BA%A6%E6%9B%B4%E9%AB%98%EF%BC%8C%E4%BD%86%E8%BF%99%E5%B9%B6%E4%B8%8D%E6%84%8F%E5%91%B3%E7%9D%80%E9%9A%BE%E5%BA%A6%E4%BC%9A%E9%99%8D%E4%BD%8E%E3%80%82%EF%BC%89%3C%2Fp%3E%3Cp%3E3.+There+is+an+excellent+blend+of+different+combat+options.%3C%2Fp%3E%3Cp%3E%EF%BC%88%E4%B8%8D%E5%90%8C%E6%88%98%E6%96%97%E9%80%89%E9%A1%B9%E7%9A%84%E5%AE%8C%E7%BE%8E%E8%9E%8D%E5%90%88%E3%80%82%EF%BC%89%3C%2Fp%3E%3Cp%3E4.+Wukong+is+one+of+the+most+gorgeous+games+I%E2%80%99ve+ever+played.%3C%2Fp%3E%3Cp%3E%EF%BC%88%E6%82%9F%E7%A9%BA%E6%98%AF%E6%88%91%E7%8E%A9%E8%BF%87%E7%9A%84%E6%9C%80%E5%8D%8E%E4%B8%BD%E7%9A%84%E6%B8%B8%E6%88%8F%E4%B9%8B%E4%B8%80%E3%80%82%EF%BC%89%3C%2Fp%3E%3Cp%3E5.+I+would+love+to+be+able+to+recommend+it+without+the+technical+caveats.%3C%2Fp%3E%3Cp%3E%EF%BC%88%E6%88%91%E5%BE%88%E4%B9%90%E6%84%8F%E6%8E%A8%E8%8D%90%E8%BF%99%E6%AC%BE%E6%B8%B8%E6%88%8F%EF%BC%8C%E6%97%A0%E9%9C%80%E6%8B%85%E5%BF%83%E6%8A%80%E6%9C%AF%E9%97%AE%E9%A2%98%E3%80%82%EF%BC%89%3C%2Fp%3E
to
zh-cn
Files
empty
Cookies
empty
Session
empty

Server/Request Data

TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
PATH
/usr/local/bin:/usr/bin:/bin
USER
www
HOME
/home/www
HTTP_CONTENT_LENGTH
8586
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded;charset=UTF-8
HTTP_CONNECTION
Keep-Alive
HTTP_ACCEPT
*/*
HTTP_HOST
td.880772.xyz
PHP_VALUE
open_basedir=/data/wwwroot/td.880772.xyz/public:/tmp/:/proc/:/data/wwwroot/td.880772.xyz/
PATH_INFO
/api/index/fanyi_article_content
REDIRECT_STATUS
200
SERVER_NAME
td.880772.xyz
SERVER_PORT
443
SERVER_ADDR
188.165.242.95
REMOTE_PORT
22320
REMOTE_ADDR
65.21.47.162
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/wwwroot/td.880772.xyz/public
DOCUMENT_URI
/index.php
REQUEST_URI
/api/index/fanyi_article_content
SCRIPT_NAME
/index.php
CONTENT_LENGTH
8586
CONTENT_TYPE
application/x-www-form-urlencoded;charset=UTF-8
REQUEST_METHOD
POST
QUERY_STRING
s=/api/index/fanyi_article_content
SCRIPT_FILENAME
/data/wwwroot/td.880772.xyz/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1726044986.7756
REQUEST_TIME
1726044986
Environment Variables
empty

ThinkPHP Constants

PUBLIC_PATH
/data/wwwroot/td.880772.xyz/public/../public/
APP_PATH
/data/wwwroot/td.880772.xyz/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1726044986.7761
THINK_START_MEM
439160
EXT
.php
DS
/
THINK_PATH
/data/wwwroot/td.880772.xyz/thinkphp/
LIB_PATH
/data/wwwroot/td.880772.xyz/thinkphp/library/
CORE_PATH
/data/wwwroot/td.880772.xyz/thinkphp/library/think/
TRAIT_PATH
/data/wwwroot/td.880772.xyz/thinkphp/library/traits/
ROOT_PATH
/data/wwwroot/td.880772.xyz/
EXTEND_PATH
/data/wwwroot/td.880772.xyz/extend/
VENDOR_PATH
/data/wwwroot/td.880772.xyz/vendor/
RUNTIME_PATH
/data/wwwroot/td.880772.xyz/runtime/
LOG_PATH
/data/wwwroot/td.880772.xyz/runtime/log/
CACHE_PATH
/data/wwwroot/td.880772.xyz/runtime/cache/
TEMP_PATH
/data/wwwroot/td.880772.xyz/runtime/temp/
CONF_PATH
/data/wwwroot/td.880772.xyz/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/data/wwwroot/td.880772.xyz/addons/
<script> var LINE = 385; function $(selector, node){ var elements; node = node || document; if(document.querySelectorAll){ elements = node.querySelectorAll(selector); } else { switch(selector.substr(0, 1)){ case '#': elements = [node.getElementById(selector.substr(1))]; break; case '.': if(document.getElementsByClassName){ elements = node.getElementsByClassName(selector.substr(1)); } else { elements = get_elements_by_class(selector.substr(1), node); } break; default: elements = node.getElementsByTagName(); } } return elements; function get_elements_by_class(search_class, node, tag) { var elements = [], eles, pattern = new RegExp('(^|\\s)' + search_class + '(\\s|$)'); node = node || document; tag = tag || '*'; eles = node.getElementsByTagName(tag); for(var i = 0; i < eles.length; i++) { if(pattern.test(eles[i].className)) { elements.push(eles[i]) } } return elements; } } $.getScript = function(src, func){ var script = document.createElement('script'); script.async = 'async'; script.src = src; script.onload = func || function(){}; $('head')[0].appendChild(script); } ;(function(){ var files = $('.toggle'); var ol = $('ol', $('.prettyprint')[0]); var li = $('li', ol[0]); // 短路径和长路径变换 for(var i = 0; i < files.length; i++){ files[i].ondblclick = function(){ var title = this.title; this.title = this.innerHTML; this.innerHTML = title; } } // 设置出错行 var err_line = $('.line-' + LINE, ol[0])[0]; err_line.className = err_line.className + ' line-error'; $.getScript('//cdn.bootcss.com/prettify/r298/prettify.min.js', function(){ prettyPrint(); // 解决Firefox浏览器一个很诡异的问题 // 当代码高亮后,ol的行号莫名其妙的错位 // 但是只要刷新li里面的html重新渲染就没有问题了 if(window.navigator.userAgent.indexOf('Firefox') >= 0){ ol[0].innerHTML = ol[0].innerHTML; } }); })(); </script>

以上是黑神话悟空IGN打分8/10的详细内容。更多信息请关注PHP中文网其他相关文章!

来源:f71.com
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板