mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: rid_str长度大于12时使用dynamic_id_str(origin)
This commit is contained in:
parent
e93b86ed32
commit
e28e17104c
@ -130,7 +130,7 @@ class Public {
|
||||
obj.description = item.content || item.description || ''; /* 转发者的描述 */
|
||||
if (obj.type === 1) {
|
||||
obj.origin_uid = desc.origin.uid; /* 被转发者的UID */
|
||||
obj.origin_rid_str = desc.origin.rid_str /* 被转发者的rid(用于发评论) */
|
||||
obj.origin_rid_str = desc.origin.rid_str.length > 12 ? desc.origin.dynamic_id_str : desc.origin.rid_str; /* 被转发者的rid(用于发评论) */
|
||||
obj.origin_dynamic_id = desc.orig_dy_id_str; /* 被转发者的动态的ID !!!!此为大数需使用字符串值,不然JSON.parse()会有丢失精度 */
|
||||
const { origin_extension, origin_user } = cardToJson;
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user