始终显示公司名不存在

gread_369 发布于 2016/08/25 22:06
阅读 534
收藏 0

华为云11月刊推送:DIY微信问答机器人,高性能计算代码的20个技巧!>>>

@老法海 你好,想跟你请教个问题:

我根据模拟请求,返回的json结果如下

{
  "__DEBUG__": {
    "INFO": [
      "[ app_init ] --START--",
      "Run Behavior\BuildLiteBehavior [ RunTime:0.000008s ]",
      "Run Common\Behaviors\AutoRouteBehavior [ RunTime:0.000320s ]",
      "[ app_init ] --END-- [ RunTime:0.000395s ]",
      "[ app_begin ] --START--",
      "Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000329s ]",
      "[ app_begin ] --END-- [ RunTime:0.000372s ]"
    ],
    "NOTIC": [
      "[8] Constant __EXT__ already defined /data/disk1/server/php/ones/server/vendor/topthink/thinkphp/ThinkPHP/Library/Think/Dispatcher.class.php 第 121 行.",
      "[2] array_merge(): Argument #1 is not an array /data/disk1/server/php/ones/server/vendor/topthink/thinkphp/ThinkPHP/Library/Think/Dispatcher.class.php 第 244 行.",
      "[2] Invalid argument supplied for foreach() /data/disk1/server/php/ones/server/vendor/topthink/thinkphp/ThinkPHP/Library/Think/Hook.class.php 第 46 行",
      "[8] Undefined index: auth_dont_need_login /data/disk1/server/php/ones/server/Application/Common/Controller/BaseRestController.class.php 第 179 行.",
      "[8] Undefined index: auth_dont_need_check /data/disk1/server/php/ones/server/Application/Common/Controller/BaseRestController.class.php 第 181 行.",
      "[8] Undefined index: id /data/disk1/server/php/ones/server/Application/Common/Model/CommonModel.class.php 第 25 行.",
      "[2] Invalid argument supplied for foreach() /data/disk1/server/php/ones/server/Application/Common/Common/function.php 第 184 行."
    ],
    "REQUEST_METHOD": "POST",
    "REQUEST_URI": "/server/gateway.php?s=/account/login",
    "SQL": [
      "DESCRIBE authorize [ RunTime:0.000791s ]",
      "DESCRIBE user_info [ RunTime:0.000675s ]",
      "DESCRIBE auth_user_role [ RunTime:0.000604s ]",
      "SELECT * FROM `auth_user_role` WHERE `user_info_id` = 0 AND `company_id` = 0  [ RunTime:0.000451s ]",
      "DESCRIBE company [ RunTime:0.000651s ]",
      "SELECT * FROM `company` LIMIT 1   [ RunTime:0.000356s ]",
      "SELECT * FROM `company` WHERE `sign_id` = '' LIMIT 1   [ RunTime:0.000351s ]"
    ]
  },
  "error": 1,
  "msg": "公司不存在"
}



这个是什么问题?

加载中
0
游客
游客

please format you code first

like this

{
  "error": 1,
  "msg": "\u516c\u53f8\u4e0d\u5b58\u5728",
  "__DEBUG__": {
    "INFO": [
      "[ app_init ] --START--\r\n",
      "Run Behavior\\BuildLiteBehavior [ RunTime:0.000007s ]\r\n",
      "Run Common\\Behaviors\\AutoRouteBehavior [ RunTime:0.000330s ]\r\n",
      "[ app_init ] --END-- [ RunTime:0.000408s ]\r\n",
      "[ app_begin ] --START--\r\n",
      "Run Behavior\\ReadHtmlCacheBehavior [ RunTime:0.000336s ]\r\n",
      "[ app_begin ] --END-- [ RunTime:0.000379s ]\r\n"
    ],
    "NOTIC": [



g
gread_369
已修改
0
老法海
老法海

"SELECT * FROM `company` WHERE `sign_id` = '' LIMIT 1   [ RunTime:0.000351s ]"

看样子是签名ID没有

老法海
老法海
回复 @gread_369 : QQ 335454250
g
gread_369
auth_user_role数据 id,user_info_id,company_id,auth_role_id 1,1,1,1
g
gread_369
user_info数据 id,login,realname,email,avatar,created,rand_hash,company_id,department_id,trashed 1,mingdao,mingdao,mingdao@51nicelife.com,NULL,"2016-08-25 22:09:37",v2Rz8V,1,1,0
g
gread_369
company数据 id,name,sign_id,superuser,created,balance,is_active 1,mingdao ,10000,1,2016-08-25 22:09:37,0.0000,1
返回顶部
顶部