Răsfoiți Sursa

버그 수정

잉여개발기 (SPDV) 1 an în urmă
părinte
comite
1b1f3e368e

+ 1 - 1
requirements-optional.txt

@@ -1,3 +1,3 @@
 mysqlclient
 regex
-orjson
+ujson

+ 0 - 1
route/go_api_bbs.py

@@ -4,6 +4,5 @@ async def api_bbs(bbs_num = "", page = 1):
     other_set = {}
     other_set["bbs_num"] = str(bbs_num)
     other_set["page"] = str(page)
-    other_set["ip"] = ip_check()
 
     return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))

+ 0 - 1
route/go_api_bbs_w.py

@@ -2,7 +2,6 @@ from .tool.func import *
 
 async def api_bbs_w(sub_code = '', legacy = 'on'):
     other_set = {}
-    other_set['ip'] = ip_check()
     other_set["legacy"] = legacy
     other_set['sub_code'] = sub_code
 

+ 0 - 1
route/go_api_bbs_w_comment.py

@@ -5,7 +5,6 @@ async def api_bbs_w_comment(sub_code = '', tool = "", legacy = 'on'):
     other_set["sub_code"] = sub_code
     other_set["tool"] = tool
     other_set["legacy"] = legacy
-    other_set["ip"] = ip_check()
 
     return await python_to_golang(sys._getframe().f_code.co_name, other_set)
 

+ 0 - 1
route/go_api_bbs_w_comment_one.py

@@ -5,7 +5,6 @@ async def api_bbs_w_comment_one(sub_code = '', legacy = 'on', tool = ''):
     other_set["sub_code"] = sub_code
     other_set["legacy"] = legacy
     other_set["tool"] = tool
-    other_set["ip"] = ip_check()
 
     return await python_to_golang(sys._getframe().f_code.co_name, other_set)
 

+ 0 - 1
route/go_api_bbs_w_set.py

@@ -4,7 +4,6 @@ async def api_bbs_w_set(name = 'Test', bbs_num = 1):
     other_set = {}
     other_set["set_name"] = name
     other_set["set_id"] = str(bbs_num)
-    other_set["ip"] = ip_check()
 
     func_name = sys._getframe().f_code.co_name
     if flask.request.method == 'PUT':

+ 0 - 1
route/go_api_bbs_w_tabom.py

@@ -3,7 +3,6 @@ from .tool.func import *
 async def api_bbs_w_tabom(sub_code = ''):
     other_set = {}
     other_set["sub_code"] = sub_code
-    other_set["ip"] = ip_check()
 
     func_name = sys._getframe().f_code.co_name
     if flask.request.method == 'POST':

+ 0 - 1
route/go_api_func_email.py

@@ -6,7 +6,6 @@ async def api_func_email():
         func_name += '_post'
 
         other_set = {}
-        other_set["ip"] = ip_check()
         other_set["who"] = flask.request.form.get('email', '')
         other_set["title"] = flask.request.form.get('title', '')
         other_set["data"] = flask.request.form.get('data', '')

+ 0 - 1
route/go_api_func_ip.py

@@ -2,7 +2,6 @@ from .tool.func import *
 
 async def api_func_ip(data = 'Test'):
     other_set = {}
-    other_set["ip"] = ip_check()
 
     func_name = sys._getframe().f_code.co_name
     if flask.request.method == 'POST':

+ 0 - 1
route/go_api_func_ip_menu.py

@@ -3,7 +3,6 @@ from .tool.func import *
 async def api_func_ip_menu(ip = "Test", option = ""):
     other_set = {}
     other_set["ip"] = ip
-    other_set["my_ip"] = ip_check()
     other_set["option"] = option
 
     return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))

+ 0 - 1
route/go_api_func_llm.py

@@ -4,7 +4,6 @@ async def api_func_llm():
     if flask.request.method == 'POST':
         other_set = {}
         other_set["prompt"] = flask.request.form.get('prompt', '')
-        other_set["ip"] = ip_check()
 
         return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))
     else:

+ 0 - 1
route/go_api_give_auth.py

@@ -6,7 +6,6 @@ async def api_give_auth():
         func_name += '_patch'
 
         other_set = {}
-        other_set["ip"] = ip_check()
         other_set["user_name"] = flask.request.form.get('user_name', '')
         other_set['auth'] = flask.request.form.get('auth', '')
         other_set['change_auth'] = flask.request.form.get('change_auth', '')

+ 0 - 1
route/go_api_list_history.py

@@ -5,7 +5,6 @@ async def api_list_history(num = 1, set_type = 'normal', doc_name = 'Test'):
     other_set["num"] = str(num)
     other_set["doc_name"] = doc_name
     other_set["set_type"] = set_type
-    other_set["ip"] = ip_check()
     
     return await python_to_golang(sys._getframe().f_code.co_name, other_set)
 

+ 0 - 1
route/go_api_list_recent_block.py

@@ -6,6 +6,5 @@ async def api_list_recent_block(num = 1, set_type = 'all', user_name = 'Test', w
     other_set["set_type"] = set_type
     other_set["user_name"] = user_name
     other_set["why"] = why
-    other_set["ip"] = ip_check()
 
     return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))

+ 0 - 1
route/go_api_list_recent_change.py

@@ -6,7 +6,6 @@ async def api_list_recent_change(num = 1, set_type = 'normal', limit = 10, legac
     other_set["limit"] = str(limit)
     other_set["set_type"] = set_type
     other_set["legacy"] = legacy
-    other_set["ip"] = ip_check()
 
     return await python_to_golang(sys._getframe().f_code.co_name, other_set)
 

+ 0 - 1
route/go_api_list_recent_discuss.py

@@ -6,7 +6,6 @@ async def api_list_recent_discuss(num = 1, set_type = 'normal', limit = 10, lega
     other_set["limit"] = str(limit)
     other_set["set_type"] = set_type
     other_set["legacy"] = legacy
-    other_set["ip"] = ip_check()
 
     response = flask.make_response(flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set)))
     

+ 0 - 1
route/go_api_list_recent_edit_request.py

@@ -5,7 +5,6 @@ async def api_list_recent_edit_request(num = 1, set_type = 'normal', limit = 50)
     other_set["num"] = str(num)
     other_set["limit"] = str(limit)
     other_set["set_type"] = set_type
-    other_set["ip"] = ip_check()
 
     return await python_to_golang(sys._getframe().f_code.co_name, other_set)
 

+ 0 - 1
route/go_api_setting.py

@@ -3,7 +3,6 @@ from .tool.func import *
 async def api_setting(name = 'Test'):
     other_set = {}
     other_set["set_name"] = name
-    other_set["ip"] = ip_check()
 
     func_name = sys._getframe().f_code.co_name
     if flask.request.method == 'PUT':

+ 0 - 1
route/go_api_topic.py

@@ -130,7 +130,6 @@ async def api_topic(topic_num = 1, tool = 'normal', s_num = '', e_num = ''):
             other_set["tool"] = tool
             other_set["s_num"] = str(s_num)
             other_set["e_num"] = str(e_num)
-            other_set["ip"] = ip_check()
 
             return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))
         else:

+ 0 - 1
route/go_api_user_rankup.py

@@ -2,7 +2,6 @@ from .tool.func import *
 
 async def api_user_rankup():
     other_set = {}
-    other_set["ip"] = ip_check()
     
     func_name = sys._getframe().f_code.co_name
     if flask.request.method == 'PATCH':

+ 0 - 1
route/go_api_user_setting_editor.py

@@ -2,7 +2,6 @@ from .tool.func import *
 
 async def api_user_setting_editor():
     other_set = {}
-    other_set["ip"] = ip_check()
     
     func_name = sys._getframe().f_code.co_name
     if flask.request.method == 'POST':

+ 0 - 1
route/go_api_w_raw.py

@@ -5,7 +5,6 @@ async def api_w_raw(name = 'Test', rev = '', exist_check = ''):
     other_set["name"] = name
     other_set["rev"] = str(rev)
     other_set["exist_check"] = exist_check
-    other_set["ip"] = ip_check()
 
     return await python_to_golang(sys._getframe().f_code.co_name, other_set)
 

+ 0 - 1
route/go_api_w_set_reset.py

@@ -3,6 +3,5 @@ from .tool.func import *
 async def api_w_set_reset(name = 'Test'):
     other_set = {}
     other_set["name"] = name
-    other_set["ip"] = ip_check()
 
     return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))

+ 0 - 1
route/go_api_w_watch_list.py

@@ -4,7 +4,6 @@ async def api_w_watch_list(name = 'Test', do_type = 'watch_list', num = 1):
     other_set = {}
     other_set["name"] = name
     other_set["do_type"] = do_type
-    other_set["ip"] = ip_check()
     other_set["num"] = str(num)
 
     return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))

+ 1 - 2
route/tool/func.py

@@ -160,7 +160,7 @@ async def python_to_golang(func_name, other_set = {}):
         other_set["ip"] = "127.0.0.1"
 
     port_data = global_some_set_do("setup_golang_port")
-    
+
     async with aiohttp.ClientSession() as session:
         while 1:
             async with session.post('http://localhost:' + port_data + '/', data = json.dumps(other_set)) as res:
@@ -1955,7 +1955,6 @@ async def ban_check(ip = None, tool = ''):
 
 async def ip_pas(raw_ip):
     other_set = {}
-    other_set["ip"] = ip_check()
     
     return_data = 0
     if type(raw_ip) != type([]):

+ 2 - 2
route/tool/func_tool.py

@@ -13,9 +13,9 @@ import time
 import threading
 
 try:
-  import orjson as json
+    import ujson as json
 except:
-  import json
+    import json
   
 try:
     import regex as re

+ 1 - 1
route/view_w.py

@@ -96,7 +96,7 @@ async def view_w(name = 'Test', do_type = ''):
                 user_name = html.escape(match.group(1))
             
             user_doc = ''
-            
+
             # S admin or owner 특수 틀 추가
             if await acl_check(tool = 'all_admin_auth', ip = user_name) != 1:
                 if await acl_check(tool = 'owner_auth', ip = user_name) != 1:

+ 3 - 3
version.json

@@ -1,6 +1,6 @@
 {
-    "r_ver" : "v3.6.0-v16",
-    "c_ver" : "20250325",
+    "r_ver" : "v3.6.0-v17",
+    "c_ver" : "20250326",
     "s_ver" : "20240426",
-    "bin_link" : "https://github.com/openNAMU/GopenNAMU/releases/download/v2025-04-18-b1/"
+    "bin_link" : "https://github.com/openNAMU/GopenNAMU/releases/download/v2025-04-24-v1/"
 }