XMOJ-Script-dev / XMOJ-bbs

XMOJ增强脚本后台
https://www.xmoj-bbs.me
GNU Affero General Public License v3.0
4 stars 1 forks source link

[Bug] 站务版发帖检查 #7

Closed langningchen closed 7 months ago

langningchen commented 9 months ago

检查项

描述

Screenshot_20231017_212444_Kiwi Browser

重现步骤

No response

控制台错误信息

No response

boomzero commented 9 months ago

很老的issue, 我以前做hash phpsessid时就有

On Oct 17, 2023, at 21:25, Chen LangNing @.***> wrote:

Assigned XMOJ-Script-dev/XMOJ-bbs#7 https://github.com/XMOJ-Script-dev/XMOJ-bbs/issues/7 to @boomzero https://github.com/boomzero.

— Reply to this email directly, view it on GitHub https://github.com/XMOJ-Script-dev/XMOJ-bbs/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZNYHVEFKIYSZVPUCPTX72BMHAVCNFSM6AAAAAA6D3HFTSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQGY3TQNJUGQYDEMY. You are receiving this because you were assigned.

PythonSmall-Q commented 9 months ago

PythonSmall-Q commented 9 months ago

主要是太忙

PythonSmall-Q commented 8 months ago

等一下,我怎么记得这玩意儿是检测的

PythonSmall-Q commented 8 months ago

https://github.com/XMOJ-Script-dev/XMOJ-Script/blob/3d13f3e1815dfa57145f941a379272640de176e9/Server/Source/Process.ts#L271 @langningchen

PythonSmall-Q commented 8 months ago

但是我尝试了一下,这句话一点都没用

langningchen commented 8 months ago

@PythonSmall-Q 你检查一下后台数据库

langningchen commented 8 months ago

表 bbs_board

langningchen commented 8 months ago

看一下是不是站务班的编号不是 0

langningchen commented 8 months ago

上面一行写了 Data["BoardID"] === 0

PythonSmall-Q commented 8 months ago

image

langningchen commented 8 months ago

那你就逐行调试吧,我也不知道为什么

langningchen commented 8 months ago

打印中间变量来调试

PythonSmall-Q commented 8 months ago

Docs开始写了,你们帮个忙

langningchen commented 8 months ago

@PythonSmall-Q 我帮你?不可能 让 @boomzero 帮你吧

boomzero commented 7 months ago

@langningchen https://github.com/XMOJ-Script-dev/XMOJ-Script/blob/3d13f3e1815dfa57145f941a379272640de176e9/Server/Source/Process.ts#L270

你~tm~调用函数不加括号的?(我调了一年……)

boomzero commented 7 months ago

fixed!

boomzero commented 7 months ago

https://github.com/XMOJ-Script-dev/XMOJ-bbs/commit/ccc853b22c806c315b887b4a0fcdd623e61157ef#diff-9dc982bf412ba435f10cc40782fb368c23dfa18b6252ff0f15abcc6527d23d4f

langningchen commented 7 months ago

你~tm~调用函数不加括号的?(我调了一年……)

@boomzero 好吧

langningchen commented 7 months ago

我也真的服了,肯定是当时没有网络没有 Copilot ,不然肯定不会有这种低级错误

langningchen commented 7 months ago

而且都怪 JS 比较灵活,如果是 C++ 早就会报错了