写好一个

好方案指的是方案形势

给我一个购买的理由

营销咨询行业做了十几年,什么品牌定位、渠道开发、营销管理、价格策略等等等等,其实都是在为了解决那几秒钟内发生的事情——购

+ 更多

首届陕西省农业品牌设计大赛鼎浩喜获多项大奖

首届陕西省农业品牌设计大赛由陕西省农业农村厅主办,鼎浩设计部共提交四份参赛作品,分别参与了陕西现代农业品牌整体宣传徽标、

+ 更多

为创业把脉

大众创业,万众创新,以前叫“下海”,现在可以叫“跳海”,将会有更多的人“跳海”,海里人多了,也安全,也危险,安全是海里人

+ 更多

鼎浩专注于研究消费者心理,善于发掘消费者的购买动机,进而打造出具有影响力和感召力的品牌诉求,为客户创造和管理品牌。我们为企业提供包括品牌策划、创意设计、品牌营销在内的全程品牌跟踪服务。

Copyright © 2019 陕西鼎浩文化传播有限公司 版权所有 备案/许可证编号为:陕ICP备19012733号

System Error

[0] ThrowableError in Article.php line 87

致命错误: Call to a member function toArray() on null

  1. $articles['data'][$k]['category_name'] = cache('categorys')[$v['category_id']]['name'];
  2. }
  3. return $articles;
  4. }
  5. /**
  6. * 获取文章详情
  7. */
  8. function get_details($id){
  9. $result = $this->get($id);
  10. $article = $result->toArray();
  11. $next = $this->where('id','<',$id)->where('category_id',$article['category_id'])->order('id desc')->find();
  12. $prev = $this->where('id','>',$id)->where('category_id',$article['category_id'])->order('id asc')->find();
  13. $prev = $prev?$prev->toArray():array('title'=>'返回列表','url'=>url('index/article/lists',['category_id'=>$article['category_id']]));
  14. $next = $next?$next->toArray():array('title'=>'返回列表','url'=>url('index/article/lists',['category_id'=>$article['category_id']]));
  15. $article['prev'] = array('title'=>$prev['title'],'url'=>$prev['url']);
  16. $article['next'] = array('title'=>$next['title'],'url'=>$next['url']);
  17. return $article;
  18. }

Call Stack

  1. in Article.php line 87
  2. at Article->get_details('tencent:') in Article.php line 95
  3. at Article->show()
  4. at ReflectionMethod->invokeArgs(object(Article), []) in App.php line 343
  5. at App::invokeMethod([object(Article), 'show'], []) in App.php line 611
  6. at App::module(['index', 'article', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'article', 'show']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/sites/dinghaosh...') in index.php line 20

Environment Variables

GET Data

Menu
yes
uin
303166049
POST Data
empty
Files
empty

Cookies

p_uv_id
60971b9ad2f5ec05e4cbe3fb402da5d8

Session

think
{ "member": { "id": 0 } }

Server/Request Data

HOSTNAME
75b6a71329d5
PHP_INI_DIR
/usr/local/etc/php
SHLVL
1
HOME
/home/www-data
PHP_LDFLAGS
-Wl,-O1 -pie
PHP_CFLAGS
-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_VERSION
7.4.33
COMPOSER_HOME
/tmp/composer
GPG_KEYS
42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312
PHP_CPPFLAGS
-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_ASC_URL
https://www.php.net/distributions/php-7.4.33.tar.xz.asc
PHP_URL
https://www.php.net/distributions/php-7.4.33.tar.xz
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LD_PRELOAD
/usr/lib/preloadable_libiconv.so php
PHPIZE_DEPS
autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PWD
/www
PHP_SHA256
924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927
USER
www-data
HTTP_CONNECTION
keep-alive
HTTP_CACHE_CONTROL
max-age=0
HTTP_X_FORWARDED_FOR
10.3.67.203
HTTP_VIA
1.1 squid-proxy-5b5d847c96-6phq2 (squid/6.13)
HTTP_HOST
dinghaosheji.com
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_COOKIE
p_uv_id=60971b9ad2f5ec05e4cbe3fb402da5d8
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
PATH_INFO
/index/article/show/id/tencent:/message/
SCRIPT_FILENAME
/www/sites/dinghaosheji.com/index/index.php
REDIRECT_STATUS
200
SERVER_NAME
dinghaosheji.com
SERVER_PORT
80
SERVER_ADDR
172.17.182.178
REMOTE_PORT
62384
REMOTE_ADDR
216.73.216.174
SERVER_SOFTWARE
nginx
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/sites/dinghaosheji.com/index
DOCUMENT_URI
/index.php
REQUEST_URI
/index/article/show/id/tencent:/message/?Menu=yes&uin=303166049
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/article/show/id/tencent:/message/&Menu=yes&uin=303166049
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1765835188.4598
REQUEST_TIME
1765835188
Environment Variables
empty

ThinkPHP Constants

VERSION
v1.1.4
APP_PATH
/www/sites/dinghaosheji.com/index/application/
HTML_PATH
/www/sites/dinghaosheji.com/index/html/
THINK_VERSION
5.0.24
THINK_START_TIME
1765835188.4602
THINK_START_MEM
410080
EXT
.php
DS
/
THINK_PATH
/www/sites/dinghaosheji.com/index/thinkphp/
LIB_PATH
/www/sites/dinghaosheji.com/index/thinkphp/library/
CORE_PATH
/www/sites/dinghaosheji.com/index/thinkphp/library/think/
TRAIT_PATH
/www/sites/dinghaosheji.com/index/thinkphp/library/traits/
ROOT_PATH
/www/sites/dinghaosheji.com/index/
EXTEND_PATH
/www/sites/dinghaosheji.com/index/extend/
VENDOR_PATH
/www/sites/dinghaosheji.com/index/vendor/
RUNTIME_PATH
/www/sites/dinghaosheji.com/index/runtime/
LOG_PATH
/www/sites/dinghaosheji.com/index/runtime/log/
CACHE_PATH
/www/sites/dinghaosheji.com/index/runtime/cache/
TEMP_PATH
/www/sites/dinghaosheji.com/index/runtime/temp/
CONF_PATH
/www/sites/dinghaosheji.com/index/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false