#Halo AntSword! 开云(中国)Kaiyun·官方网站-登录入口
#Halo AntSword!
Fatal error: Call to a member function toArray() on null in /www/wwwroot/testtaijingcust/api/application/logic/UseLogic.php on line 106

[1] ErrorException in UseLogic.php line 106

Call to a member function toArray() on null

  1. /**
  2. * Desc:根据UID获取所有伙伴
  3. * Date: 2019-10-09
  4. * Author: jok
  5. * @param $uid
  6. * @param $type 0二维数组 1为一维数组
  7. */
  8. public function getSjhb($uid,$type=0,$status=2) {
  9. $userModel=new userModel();
  10. $userdetail=$userModel->where('id',$uid)->find()->toArray();
  11. $map='(id='.$uid;
  12. if($userdetail['is_senior']==2){//高级伙伴
  13. $group_uids=$userModel->where('group_uid',$uid)->column('id');//下面的高级伙伴
  14. if(!empty($group_uids)){
  15. $map .=' or id in ('.implode(',',$group_uids).') or benef_uid in ('.implode(',',$group_uids).') or benef_uid='.$uid;
  16. }else{
  17. $map .=' or benef_uid='.$uid;
  18. }
  19. }

Call Stack

  1. in UseLogic.php line 106
  2. at Error::appShutdown()

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/testtaijingcust/api/public/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/testtaijingcust/api/public
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
118.68.1.50
REMOTE_PORT
33246
SERVER_ADDR
172.18.225.4
SERVER_PORT
443
SERVER_NAME
api.test.taijingwang.cn
REDIRECT_STATUS
200
PATH_INFO
HTTP_HOST
api.test.taijingwang.cn
HTTP_SEC_CH_UA
"Chromium";v="130", "Microsoft Edge";v="130", "Not?A_Brand";v="99"
HTTP_SEC_CH_UA_MOBILE
?0
HTTP_SEC_CH_UA_PLATFORM
"Windows"
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_SEC_FETCH_SITE
none
HTTP_SEC_FETCH_MODE
navigate
HTTP_SEC_FETCH_USER
?1
HTTP_SEC_FETCH_DEST
document
HTTP_ACCEPT_ENCODING
gzip, deflate, br, zstd
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.9
HTTP_PRIORITY
u=0, i
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1731125546.7133
REQUEST_TIME
1731125546
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/testtaijingcust/api/public/../application/
THINK_VERSION
5.0.23
THINK_START_TIME
1731125546.7138
THINK_START_MEM
266328
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/
LIB_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/library/
CORE_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/testtaijingcust/api/
EXTEND_PATH
/www/wwwroot/testtaijingcust/api/extend/
VENDOR_PATH
/www/wwwroot/testtaijingcust/api/vendor/
RUNTIME_PATH
/www/wwwroot/testtaijingcust/api/runtime/
LOG_PATH
/www/wwwroot/testtaijingcust/api/runtime/log/
CACHE_PATH
/www/wwwroot/testtaijingcust/api/runtime/cache/
TEMP_PATH
/www/wwwroot/testtaijingcust/api/runtime/temp/
CONF_PATH
/www/wwwroot/testtaijingcust/api/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
APPID1
wx26ec7c71c2cab101
APPID
wx0df8cd8ddb21a432
SECRET
11770540264f8ba73fbf2b7541224c18
MCHID
1521315451
SECRECT_KEY
A566465asfwfaswfEWFV56AF49GjEWF4
System Error

[2] ErrorException in config.php line 16

Cannot modify header information - headers already sent by (output started at /www/wwwroot/testtaijingcust/api/runtime/classmap.php:775)

  1. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  2. // +----------------------------------------------------------------------
  3. // | Author: liu21st <liu21st@gmail.com>
  4. // +----------------------------------------------------------------------
  5. define("APPID1", "wx26ec7c71c2cab101");//公众号的APPID
  6. define("APPID", "wx0df8cd8ddb21a432"); // 小程序appid//wx26ec7c71c2cab101
  7. define("SECRET", "11770540264f8ba73fbf2b7541224c18"); // 小程序密钥
  8. define("MCHID", "1521315451"); // 商户号
  9. define("SECRECT_KEY", "A566465asfwfaswfEWFV56AF49GjEWF4"); //支付密钥签名
  10. header("Content-Type: text/html;charset=utf-8");
  11. return [
  12. // +----------------------------------------------------------------------
  13. // | 应用设置
  14. // +----------------------------------------------------------------------
  15. // 应用命名空间
  16. 'app_namespace' => 'app',
  17. // 应用调试模式
  18. 'app_debug' => true,

Call Stack

  1. in config.php line 16
  2. at Error::appError(2, 'Cannot modify header...', '/www/wwwroot/testtai...', 16, ['file' => '/www/wwwroot/testtai...', 'name' => '', 'range' => '_sys_', ...])
  3. at header('Content-Type: text/h...') in config.php line 16
  4. at include('/www/wwwroot/testtai...') in Config.php line 80
  5. at Config::load('/www/wwwroot/testtai...') in App.php line 249
  6. at App::init() in App.php line 182
  7. at App::initCommon() in App.php line 82
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/testtai...') in index.php line 16

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/testtaijingcust/api/public/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/testtaijingcust/api/public
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
216.73.216.42
REMOTE_PORT
25307
SERVER_ADDR
172.18.225.4
SERVER_PORT
443
SERVER_NAME
api.test.taijingwang.cn
REDIRECT_STATUS
200
PATH_INFO
HTTP_HOST
api.test.taijingwang.cn
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1768290770.0475
REQUEST_TIME
1768290770
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/testtaijingcust/api/public/../application/
THINK_VERSION
5.0.23
THINK_START_TIME
1768290770.048
THINK_START_MEM
259704
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/
LIB_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/library/
CORE_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/testtaijingcust/api/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/testtaijingcust/api/
EXTEND_PATH
/www/wwwroot/testtaijingcust/api/extend/
VENDOR_PATH
/www/wwwroot/testtaijingcust/api/vendor/
RUNTIME_PATH
/www/wwwroot/testtaijingcust/api/runtime/
LOG_PATH
/www/wwwroot/testtaijingcust/api/runtime/log/
CACHE_PATH
/www/wwwroot/testtaijingcust/api/runtime/cache/
TEMP_PATH
/www/wwwroot/testtaijingcust/api/runtime/temp/
CONF_PATH
/www/wwwroot/testtaijingcust/api/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
APPID1
wx26ec7c71c2cab101
APPID
wx0df8cd8ddb21a432
SECRET
11770540264f8ba73fbf2b7541224c18
MCHID
1521315451
SECRECT_KEY
A566465asfwfaswfEWFV56AF49GjEWF4