mirror of
				https://github.com/LamGC/ContentGrabbingJi.git
				synced 2025-11-04 02:26:57 +00:00 
			
		
		
		
	[Fix] BotCommandProcess 修复因'getImageById'迁移导致'image'命令不可用的问题;
[Clear] CacheStoreCentral 清除无用代码;
This commit is contained in:
		@ -477,6 +477,16 @@ public class BotCommandProcess {
 | 
			
		||||
        log.warn("缓存删除完成.");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Command(commandName = "image")
 | 
			
		||||
    public static String getImageById(
 | 
			
		||||
            @Argument(name = "$fromGroup") long fromGroup,
 | 
			
		||||
            @Argument(name = "id") int illustId,
 | 
			
		||||
            @Argument(name = "quality", force = false) PixivDownload.PageQuality quality,
 | 
			
		||||
            @Argument(name = "page", force = false, defaultValue = "1") int pageIndex
 | 
			
		||||
    ) {
 | 
			
		||||
        return CacheStoreCentral.getImageById(fromGroup, illustId, quality, pageIndex);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 举报某一作品
 | 
			
		||||
     * @param fromGroup 来源群(系统提供)
 | 
			
		||||
 | 
			
		||||
@ -13,7 +13,6 @@ import net.lamgc.cgj.pixiv.PixivSearchBuilder;
 | 
			
		||||
import net.lamgc.cgj.pixiv.PixivURL;
 | 
			
		||||
import net.lamgc.cgj.util.URLs;
 | 
			
		||||
import net.lamgc.utils.base.runner.Argument;
 | 
			
		||||
import net.lamgc.utils.base.runner.Command;
 | 
			
		||||
import net.lamgc.utils.encrypt.MessageDigestUtils;
 | 
			
		||||
import net.lz1998.cq.utils.CQCode;
 | 
			
		||||
import org.apache.http.HttpResponse;
 | 
			
		||||
@ -98,7 +97,6 @@ public final class CacheStoreCentral {
 | 
			
		||||
     * @param pageIndex 指定页面索引, 从1开始
 | 
			
		||||
     * @return 如果成功, 返回BotCode, 否则返回错误信息.
 | 
			
		||||
     */
 | 
			
		||||
    @Command(commandName = "image")
 | 
			
		||||
    public static String getImageById(
 | 
			
		||||
            @Argument(name = "$fromGroup") long fromGroup,
 | 
			
		||||
            @Argument(name = "id") int illustId,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user