File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -414,8 +414,7 @@ export default class SynchronizeManager extends Manager {
414
414
} ,
415
415
meta : {
416
416
name : script . name ,
417
- // NOTE: tm会对同名的uuid校验,先屏蔽了
418
- // uuid: script.uuid,
417
+ uuid : script . uuid ,
419
418
sc_uuid : script . uuid ,
420
419
modified : script . updatetime ,
421
420
file_url : script . downloadUrl ,
Original file line number Diff line number Diff line change @@ -66,9 +66,7 @@ function App() {
66
66
item . script = await prepareScriptByCode (
67
67
item . code ,
68
68
item . options ?. meta . file_url || "" ,
69
- item . options ?. meta . sc_uuid ||
70
- item . options ?. meta . uuid ||
71
- undefined
69
+ item . options ?. meta . sc_uuid || undefined
72
70
) ;
73
71
} catch ( e : any ) {
74
72
item . error = e . toString ( ) ;
@@ -79,6 +77,7 @@ function App() {
79
77
options : { } as ScriptOptions ,
80
78
meta : {
81
79
name : item . script . name ,
80
+ // 此uuid是对tm的兼容处理
82
81
uuid : item . script . uuid ,
83
82
sc_uuid : item . script . uuid ,
84
83
file_url : item . script . downloadUrl || "" ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export type ScriptOptions = {
51
51
52
52
export type ScriptMeta = {
53
53
name : string ;
54
- uuid ? : string ; // tm会对同名的uuid校验,先屏蔽了
54
+ uuid : string ; // 此uuid是对tm的兼容处理
55
55
sc_uuid : string ; // 脚本猫uuid
56
56
modified : number ;
57
57
file_url : string ;
You can’t perform that action at this time.
0 commit comments