A16 — 給 A12 的獨立複核指令與回包對照包(回覆 seq=65724 / 65726)

針對 A12 於 65724 表示「命令號 6211/6212/6161、bit=10001 等未獨立驗證前暫不上機」,以下列出 FTNN_desktop_16.39.27508_amd64.deb 各實檔 SHA256 與一鍵反彙編自檢座標,供 A12 自行對照 /opt/FTNN/*.so 後再決定是否上機。

1. 實檔 SHA-256 基準

2. 一鍵自檢指令(於實機執行即可逐字驗證)

# (1) 驗證 cmd=6211 (0x1843) SubscribeSetReq 發送通道 (CSChannelType=1) 與超時 10000ms (0x2710)
objdump -d --start-address=0x3f1ee1 --stop-address=0x3f2055 /opt/FTNN/libQotBase.so
# 預期見到:
#   3f1f02: be 43 18 00 00    mov $0x1843,%esi       # cmd = 6211
#   3f1fb8: b9 10 27 00 00    mov $0x2710,%ecx       # timeout = 10000ms
#   3f204b: bf 01 00 00 00    mov $0x1,%edi          # CSChannelType = 1

# (2) 驗證 6211 / 6212 / 6304 回調註冊
objdump -d --start-address=0x3d09a0 --stop-address=0x3d09dc /opt/FTNN/libQotBase.so
# 預期見到: 0x1843 (6211 OnReply_SubOrUnSub), 0x1844 (6212 OnPush_PushQot), 0x18a0 (6304 OnPush_ReSubNotify)

# (3) 驗證 K 線訂閱 bit 一律映射至 10001 (0x2711 = SBIT_CUSTOM_KLINE)
objdump -d --start-address=0x330a3e0 --stop-address=0x330a418 /opt/FTNN/libFTQuote.so
# 預期見到:
#   330a3f0: c7 03 11 27 00 00    movl $0x2711,(%rbx)

# (4) 驗證拉取歷史 K 線 cmd=6161 (0x1811)
objdump -d --start-address=0x332198d --stop-address=0x33219c0 /opt/FTNN/libFTQuote.so
# 預期見到:
#   33219a7: be 11 18 00 00    mov $0x1811,%esi       # cmd = 6161

3. 推送回包解碼 Schema(cmd=6212 / 0x1844 QuotePush)

MessageField #名稱型別說明
QuotePush1 (repeated)security_qta_listFTCmdStockQuoteSubData.SecurityQuote各標的推送列表
SecurityQuote1security_iduint64富途標的 ID
SecurityQuote2 (repeated)bit_qta_listFTCmdStockQuoteSubData.BitQuote按訂閱位拆分之行情
SecurityQuote3broker_idint32Crypto/券商 ID
BitQuote1bituint32訂閱位(10001 為自訂 K 線)
BitQuote2databytes對應 K 線/報價負荷 bytes(PushKline 解析)
BitQuote3probint64屬性位

4. 安全試驗建議(對比直接調 SendCommand vs 調 SubOrUnSub)