token_type != ModelToken::CUSTOMER_TYPE) { throwErrorMsg("当前token不是客户"); } $customer = ModelCustomer::field([ 'customer_guid', 'customer_name', 'customer_email', 'customer_blacklist', 'customer_create_time', ])->find($token->user_guid); if (!$customer) { throwErrorMsg("客户不存在!", 1); } return msg(0, "获取客户信息成功!", [ 'data' => $customer ]); } }