Giter VIP home page Giter VIP logo

Comments (5)

hbljz avatar hbljz commented on September 28, 2024

进到登录页面,然后注册失败!

from exam.

hbljz avatar hbljz commented on September 28, 2024

[HPM] Error occurred while trying to proxy request /api/studentregister from localhost:8888 to http://127.0.0.1:3000/api (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
服务器端报的错误信息!

from exam.

hbljz avatar hbljz commented on September 28, 2024

报错如下:
1528454836 1
1528454869 1

from exam.

FinGet avatar FinGet commented on September 28, 2024

用户注册表单输入内容限制你看一看

下面是我数据库中的部分数据:

paper

{
    "_id" : ObjectId("5a40f5f4c08cc92254f875e0"),
    "name" : "操作系统Windows XP基础测试",
    "totalPoints" : 100,
    "time" : 60,
    "startTime" : ISODate("2018-05-19T01:02:38.394Z"),
    "examnum" : 1,
    "_teacher" : ObjectId("5a40f5f4c08cc92254f875df"),
    "_questions" : [ 
        ObjectId("5a40f5f4c08cc92254f875e1"), 
        ObjectId("5ad0b409b549df2ec8e6d675"), 
        ObjectId("5af25c1def6b38313027d370")
    ],
    "__v" : 3
}

question

{
    "_id" : ObjectId("5af2725c8891322b94bc9a76"),
    "name" : "操作系统是一种()",
    "type" : "single",
    "score" : 5,
    "answer" : "B",
    "_teacher" : ObjectId("5a40f5f4c08cc92254f875df"),
    "selection" : [ 
        "所有软件的总称", 
        "管理计算机硬件和软件资源的系统软件", 
        "操作者直接接触的计算机系统", 
        "为特定的用途设计的软件"
    ],
    "_papers" : [ 
        ObjectId("5af2725c8891322b94bc9a72")
    ],
    "__v" : 0
}

student

{
    "_id" : ObjectId("5adf41c82aa98b20e45859c7"),
    "userId" : 12001,
    "userName" : "张三",
    "passWord" : "c8837b23ff8aaa8a2dde915473ce0991",
    "grade" : "3",
    "class" : "3",
    "exams" : [ 
        {
            "_paper" : ObjectId("5acebec4bd31862a4c088882"),
            "date" : ISODate("2018-05-04T15:31:36.025Z"),
            "isSure" : true,
            "score" : 0,
            "startTime" : ISODate("2018-05-04T15:10:07.799Z"),
            "_id" : ObjectId("5aec7cd884c4e528e84fd273"),
            "answers" : []
        }
    ],
    "__v" : 16
}

teacher

{
    "_id" : ObjectId("5a40f5f4c08cc92254f875df"),
    "userId" : 100111,
    "userName" : "张老师",
    "passWord" : "e10adc3949ba59abbe56e057f20f883e",
    "_papers" : [ 
        ObjectId("5a40f5f4c08cc92254f875e0"), 
        ObjectId("5ace199c12082c1a30f48448"), 
        ObjectId("5ace1b457605f52624b17f4e"), 
        ObjectId("5ace255aba665813e4301653"), 
        ObjectId("5acebec4bd31862a4c088882"), 
        ObjectId("5acebf3dbd31862a4c088884"), 
        ObjectId("5af25464ef6b38313027d366"), 
        ObjectId("5af2725c8891322b94bc9a72"), 
        ObjectId("5aff039ea3d2941854f0509c"), 
        ObjectId("5aff6a4c04f95d32303cb431")
    ],
    "__v" : 14
}

from exam.

thanatos-proto avatar thanatos-proto commented on September 28, 2024

你这个和数据库没关系 你只是没启动express 然后数据接口当然请求不通了

from exam.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.