jack 1 week ago
parent
commit
b13bec5210
2 changed files with 3 additions and 2 deletions
  1. 1 0
      public/index.html
  2. 2 2
      routes/router.js

+ 1 - 0
public/index.html

@@ -1332,6 +1332,7 @@
                         url: uploadFileUrl1,
                         url: uploadFileUrl1,
                         id_number: idNumber.value,
                         id_number: idNumber.value,
                         type: CompetitionType.value,
                         type: CompetitionType.value,
+                        area: urlSearch.slice(1)
                     })
                     })
                 })
                 })
 
 

+ 2 - 2
routes/router.js

@@ -45,8 +45,8 @@ router.route('/user').post(async function (req, res) {
 });
 });
 
 
 router.route('/update').post(async function (req, res) {
 router.route('/update').post(async function (req, res) {
-    const { url, id_number, type } = req.body;
-    const queryList = [_mysqluser[0], _mysqluser[1], "update_registration", url, id_number, Number(type)];
+    const { url, id_number, type, area } = req.body;
+    const queryList = [_mysqluser[0], _mysqluser[1], "update_registration", url, id_number, Number(type), area];
     mysql.usselect(queryList, function (data) {
     mysql.usselect(queryList, function (data) {
         console.log(data);
         console.log(data);
         if (data[0] && data[0][0]) {
         if (data[0] && data[0][0]) {