这是怎么回事

社区公告
0 997
[8192] ErrorException in Query.php line 400
Array and string offset access syntax with curly braces is deprecated
  1. // 按照md5的序列分表
  2. $seq = (ord(substr(md5($value), 0, 1)) % $rule['num']) + 1;
  3. break;
  4. default:
  5. if (function_exists($type)) {
  6. // 支持指定函数哈希
  7. $seq = (ord(substr($type($value), 0, 1)) % $rule['num']) + 1;
  8. } else {
  9. // 按照字段的首字母的值分表
  10. $seq = (ord($value{0}) % $rule['num']) + 1;
  11. }
  12. }
  13. return $this->getTable() . '_' . $seq;
  14. } else {
  15. // 当设置的分表字段不在查询条件或者数据中
  16. // 进行联合查询,必须设定 partition['num']
  17. $tableName = [];
  18. for ($i = 0; $i < $rule['num']; $i++) {
  19. $tableName[] = 'SELECT * FROM ' . $this->getTable() . '_' . ($i + 1);
Call Stack
  1. in Query.php line 400
  2. at Error::appError(8192, 'Array and string off...', 'D:\tomcat7\apache-to...', 400, ['file' => 'D:\tomcat7\apache-to...']) in Loader.php line 666
  3. at include() in Loader.php line 666
  4. at think\__include_file('D:\tomcat7\apache-to...') in Loader.php line 85
  5. at Loader::autoload('think\db\Query')
  6. at spl_autoload_call('think\db\Query') in Connection.php line 147
  7. at Connection->getQuery() in Connection.php line 173
  8. at Connection->__call('name', ['top'])
  9. at call_user_func_array([object(Mysql), 'name'], ['top']) in Db.php line 178
  10. at Db::__callStatic('name', ['top']) in Index.php line 29
  11. at Index->index()
  12. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  13. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  14. at App::module(['index', nullnull], ['app_host' => '', 'app_debug' => 'true', 'app_trace' => false, ...], true) in App.php line 456
  15. at App::exec(['type' => 'module', 'module' => ['index', nullnull]], ['app_host' => '', 'app_debug' => 'true', 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('D:\tomcat7\apache-to...') in index.php line 20
Environment Variables
GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty
Server/Request Data
PHP_FCGI_MAX_REQUESTS
500
REDIRECT_STATUS
200
SystemRoot
C:\Windows
__COMPAT_LAYER
ElevateCreateProcess
PHP_FCGI_CHILDREN
5
HTTP_CONNECTION
keep-alive
HTTP_SEC_FETCH_USER
?1
SERVER_ADDR
localhost
HTTP_ACCEPT_ENCODING
gzip, deflate, br
X_JAVABRIDGE_REDIRECT
9267
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
HTTP_SEC_FETCH_SITE
none
HTTP_HOST
localhost:8090
SERVER_SIGNATURE
Apache Tomcat/7.0.94
HTTP_ACCEPT_LANGUAGE
zh-CN,zh;q=0.9
SCRIPT_FILENAME
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\index.php
SERVER_PORT
8090
GATEWAY_INTERFACE
CGI/1.1
HTTP_UPGRADE_INSECURE_REQUESTS
1
SERVER_NAME
localhost
SCRIPT_NAME
/php/index.php
REQUEST_METHOD
GET
REMOTE_PORT
54861
X_JAVABRIDGE_CONTEXT
1@D%3A%5Ctomcat7%5Capache-tomcat-7.0.94%5Cwebapps%5Cdocs
SERVER_SOFTWARE
JavaBridge
HTTP_SEC_FETCH_MODE
navigate
REQUEST_URI
/php/
REMOTE_ADDR
127.0.0.1
DOCUMENT_ROOT
D:\tomcat7\apache-tomcat-7.0.94\webapps\docs
REMOTE_HOST
127.0.0.1
SERVER_PROTOCOL
HTTP/1.1
FCGI_ROLE
RESPONDER
PHP_SELF
/php/index.php
REQUEST_TIME_FLOAT
1585731538.4646
REQUEST_TIME
1585731538
Environment Variables
empty
ThinkPHP Constants
WEB_URL
/php
APP_PATH
./application/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1585731538.4776
THINK_START_MEM
418664
EXT
.php
DS
\
THINK_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\thinkphp\
LIB_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\thinkphp\library\
CORE_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\thinkphp\library\think\
TRAIT_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\thinkphp\library\traits\
ROOT_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\
EXTEND_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\extend\
VENDOR_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\vendor\
RUNTIME_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\runtime\
LOG_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\runtime\log\
CACHE_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\runtime\cache\
TEMP_PATH
D:\tomcat7\apache-tomcat-7.0.94\webapps\php\runtime\temp\
CONF_PATH
./application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
暂时没有人评论
自助授权 官方qq群826939491 Guojiz成功案例展示
精选帖子
国际导航30多款模板进行免费 2281
国际导航采集扩展 4367
api接口使用教程【v3.1.3】 2353
使用本系统搭建违法,触犯,站点公告 2482
虚拟主机安装出现数据连接失败解决方案 4873
国际网址导航新版标签大全 6232
关于2.4之前版本想转3.0新版教程 3350
国际网址导航全新V4.1(2021-1-19) 25192
Guojiz网址导航系统V2.3.7正式版 3301
热门帖子
这是怎么回事 996
请教|GUOJIZ导航系统后台百度推送接口如何填写? 990
上传附件显示“请对上传接口返回JSON字符” 990
为什么导航百度一直不收录 987
近期发现有人发布违法网站在社区传播 931
网站自动跳转官网 918
请问在哪里下载找不到模板 917
提前祝大家新年快乐!分享一张明日本站所用元旦轮播图 904
安装的最新的 找不到后台 858