|
|
@@ -10728,6 +10728,22 @@ router.route('/addPPTOp').all((req, res, next) => {
|
|
|
postmysql(req, res, "addPPTOp");
|
|
|
});
|
|
|
|
|
|
+//添加资源
|
|
|
+router.route('/add_resource').all((req, res, next) => {
|
|
|
+ postmysql(req, res, "add_resource");
|
|
|
+});
|
|
|
+
|
|
|
+//修改资源
|
|
|
+router.route('/update_resource').all((req, res, next) => {
|
|
|
+ postmysql(req, res, "update_resource");
|
|
|
+});
|
|
|
+
|
|
|
+//查询资源详情
|
|
|
+router.route('/select_resource_detail').all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "select_resource_detail", json['id']);
|
|
|
+});
|
|
|
+
|
|
|
|
|
|
function generateAPIKey(username) {
|
|
|
let timeStamp = new Date().getTime();
|