1717 $ diffs = explode (PHP_EOL , $ record );
1818
1919 //查找有关文档变更
20- $ begin = array_search ('+++ b/README_test .md ' , $ diffs ) ?? (array_search ('+++ b/TESTORE.md ' , $ diffs ) ?? 0 );
20+ $ begin = array_search ('+++ b/README .md ' , $ diffs ) ?? (array_search ('+++ b/TESTORE.md ' , $ diffs ) ?? 0 );
2121 foreach ($ diffs as $ line => $ diff ) {
2222 if ($ line > $ begin ) {
2323 //匹配变更行repo信息
2828 }
2929 }
3030 //至非文档部分跳出
31- if (preg_match ('/^diff --git a\/(?!README_test \.md|TESTORE\.md).*/ ' , $ diff )) {
31+ if (preg_match ('/^diff --git a\/(?!README \.md|TESTORE\.md).*/ ' , $ diff )) {
3232 break ;
3333 }
3434 }
4040
4141//检测文档执行更新
4242$ movable = [];
43- if (file_exists ('README_test .md ' )) {
44- $ movable = updatePlugins ('README_test .md ' , $ urls , $ authKey );
43+ if (file_exists ('README .md ' )) {
44+ $ movable = updatePlugins ('README .md ' , $ urls , $ authKey );
4545} else {
4646 throw new RuntimeException ('README.md is missing! ' );
4747}
4848if (file_exists ('TESTORE.md ' )) {
4949 $ movable = updatePlugins ('TESTORE.md ' , $ urls , $ authKey , $ movable );
5050 if ($ movable ) {
51- updatePlugins ('README_test .md ' , $ urls , 'rec ' , $ movable ); //rec情况递归
51+ updatePlugins ('README .md ' , $ urls , 'rec ' , $ movable ); //rec情况递归
5252 }
5353} else {
5454 throw new RuntimeException ('TESTORE.md is missing! ' );
@@ -68,7 +68,7 @@ function updatePlugins(string $tableFile, array $requested, string $token = '',
6868 //预设出循环变量
6969 $ logs = '------- ' . $ tableFile . '------- ' . PHP_EOL . date ('Y-m-d ' , time ()) . PHP_EOL ;
7070 $ descriptions = [];
71- $ tf = $ tableFile == 'README_test .md ' ;
71+ $ tf = $ tableFile == 'README .md ' ;
7272 $ all = 0 ;
7373 $ revise = 0 ;
7474 $ creat = 0 ;
@@ -77,10 +77,10 @@ function updatePlugins(string $tableFile, array $requested, string $token = '',
7777 $ release = 0 ;
7878 $ done = 0 ;
7979 $ nameList = 'ZIP_CDN/NAME_LIST.log ' ;
80- $ listConent = file_exists ($ nameList ) ? explode ('README_test .md ALL ' . PHP_EOL , file_get_contents ($ nameList )) : [];
80+ $ listConent = file_exists ($ nameList ) ? explode ('README .md ALL ' . PHP_EOL , file_get_contents ($ nameList )) : [];
8181 $ listNames = $ listConent ? explode (PHP_EOL , $ listConent [0 ]) : [];
8282 $ movable = [];
83- $ allNames = $ tf ? ['README_test .md ALL ' ] : (isset ($ listConent [1 ]) ? explode (PHP_EOL , $ listConent [1 ]) : []);
83+ $ allNames = $ tf ? ['README .md ALL ' ] : (isset ($ listConent [1 ]) ? explode (PHP_EOL , $ listConent [1 ]) : []);
8484 $ tables = [];
8585 $ normal = $ token && $ token !== 'rec ' ;
8686
@@ -467,7 +467,7 @@ function updatePlugins(string $tableFile, array $requested, string $token = '',
467467 !in_array (explode ('_ ' , $ outName )[0 ], $ requested )
468468 ) {
469469 updatePlugins ($ tableFile , [$ outName ], '' , $ latest ); //空token情况递归
470- updatePlugins ($ tf ? 'TESTORE.md ' : 'README_test .md ' , [$ outName ], '' , $ latest );
470+ updatePlugins ($ tf ? 'TESTORE.md ' : 'README .md ' , [$ outName ], '' , $ latest );
471471 }
472472
473473 //记录插件改动明细
@@ -793,7 +793,7 @@ function dispatchZips(
793793 $ host = parse_url ($ url , PHP_URL_HOST );
794794 $ github = $ host == 'github.com ' ;
795795 $ folder = realpath ('../ ' ) . '/TMP/ ' . $ index . '_ ' . $ name ;
796- $ tf = $ md == 'README_test .md ' ;
796+ $ tf = $ md == 'README .md ' ;
797797 $ tfLocal = $ tf && is_dir ($ url );
798798 if (!is_dir ($ folder ) && !$ tfLocal ) {
799799 mkdir ($ folder , 0777 , true );
0 commit comments