|
@@ -3457,7 +3457,7 @@ router.route('/selectAllSourceType').all((req, res, next) => { //学生
|
|
|
getmysql(req, res, "selectAllSourceType", json['oid'], json['org']);
|
|
|
});
|
|
|
|
|
|
-router.route('/addSource').all((req, res, next) => {
|
|
|
+router.route('/addSource').all((req, res, next) => {//添加资源
|
|
|
if (req.body[0]) {
|
|
|
p = [req.body[0].name, req.body[0].url, req.body[0].detail, req.body[0].label, req.body[0].userid];
|
|
|
p.unshift(_mysqlLabor[0], _mysqlLabor[1], "addSource");
|
|
@@ -3505,6 +3505,12 @@ function addSourceType(userid, course, _courseId) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//资源查询
|
|
|
+router.route('/selectSource').all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "selectSource", json['uid'], json['oid'], json['org'], json['typea'], json['typeb'], json['typeE'], json['cn'], json['page'], json['pageSize']);
|
|
|
+});
|
|
|
+
|
|
|
|
|
|
function generateAPIKey(username) {
|
|
|
|