这是怎么回事

社区公告
0 4281
[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
精选帖子
新版4.2授权码的填写方式 6846
国际导航30多款模板进行免费 8661
国际导航采集扩展 13339
api接口使用教程【v3.1.3】 9150
使用本系统搭建违法,触犯,站点公告 9940
虚拟主机安装出现数据连接失败解决方案 21501
国际网址导航新版标签大全 19329
关于2.4之前版本想转3.0新版教程 10255
GUOJIZ国际网址导航系统全新V5.8(2022-04-26) 78223
热门帖子
素材系统预计月底发布 9987
使用本系统搭建违法,触犯,站点公告 9940
MyuCMS社区+商城内容管理系统V2.0正式版 9653
广告添加万能调用方法 9646
api接口使用教程【v3.1.3】 9150
Guojiz导航系统手机模板【xin】 9139
国际导航30多款模板进行免费 8661
Guojiz导航系统升级到2.3.6丁【20191015】 8605
关于安装后登录后台账号密码 8113