|
@@ -198,6 +198,24 @@ router.post("/updateProjectLookTeacher", (req, res) => {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+//zyc 分配项目给用户 有用
|
|
|
+router.post("/updateProjectLookTeacher", (req, res) => {
|
|
|
+ let data = GetData(req);
|
|
|
+ const str = req.headers.cookie ? req.headers.cookie : '';
|
|
|
+ const getUserid = getUid(str);
|
|
|
+ mysql.usselect([_mysqlLabor[0], _mysqlLabor[1], 'selectUserIdentity', data['uid']], (ret3) => {
|
|
|
+ if (ret3[0][0].type == 0) {
|
|
|
+ if (md5(data['uid']) == getUserid) {
|
|
|
+ QMysql(req, res, "updateProjectLookTeacher");
|
|
|
+ } else {
|
|
|
+ res.end(JSON.stringify({ a: "身份认证失败!" }));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ res.end(JSON.stringify({ a: "权限不足!" }));
|
|
|
+ }
|
|
|
+ })
|
|
|
+})
|
|
|
+
|
|
|
// //qgt 获取所有的分类
|
|
|
// router.get("/SelectAllType", (req, res) => {
|
|
|
// QMysql(req, res, "select_AllType")
|