This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@Slf4j | |
public class QqwryParser { | |
@Value("qqwry.dat") | |
private ClassPathResource resource; | |
public String[] versionInfo() throws IOException { | |
try (RandomAccessFile file = new RandomAccessFile(resource.getFile(), "r")) { | |
file.seek(4); | |
int lastIndexRecordOffset = Integer.reverseBytes(file.readInt()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="zh"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover"> | |
<meta name="format-detection" content="telephone=no"> | |
<meta name="applicable-device" content="mobile"> | |
<meta name="screen-orientation" content="portrait"> | |
<title>我的优惠券</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package top.sdrkyj.custom.config; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; | |
import org.springframework.web.util.UriComponentsBuilder; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package top.sdrkyj.custom.service; | |
import com.alibaba.fastjson.JSON; | |
import top.sdrkyj.custom.dao.weixin.WxUserInfoDao; | |
import top.sdrkyj.custom.entity.weixin.WxAccessToken; | |
import top.sdrkyj.custom.entity.weixin.WxUserInfo; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Service; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package top.sdrkyj.custom.controller; | |
import top.sdrkyj.custom.config.WxAuthInterceptor; | |
import top.sdrkyj.custom.dto.RestMsg; | |
import top.sdrkyj.custom.entity.weixin.WxUserInfo; | |
import top.sdrkyj.custom.service.WxService; | |
import org.apache.commons.codec.binary.Hex; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package top.sdrkyj.custom.dao; | |
import top.sdrkyj.custom.entity.Invoice; | |
import org.apache.ibatis.annotations.Mapper; | |
import org.apache.ibatis.annotations.Param; | |
import org.springframework.stereotype.Repository; | |
import java.util.List; | |
@Repository |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package top.sdrkyj.custom.dto; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.NON_NULL) | |
public class CkMsg { | |
/** | |
* null is permitted。 the filename for the uploaded file | |
*/ | |
private String fileName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package top.sdrkyj.custom.config; | |
import top.sdrkyj.custom.entity.AccessLog; | |
import top.sdrkyj.custom.entity.Account; | |
import top.sdrkyj.custom.service.AccessLogService; | |
import org.apache.shiro.SecurityUtils; | |
import org.apache.shiro.subject.PrincipalCollection; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.stereotype.Component; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax('http://custom.sdrkyj.top/form-action-url', { | |
contentType: hasFiles ? false : undefined, | |
data: hasFiles ? new FormData(formDom) : $(formDom).serialize(), | |
method: 'post',// 'patch' | |
dataType: 'json', | |
processData: !hasFiles, | |
xhr: function () { | |
let xhr = $.ajaxSettings.xhr(); | |
hasFiles && xhr.upload.addEventListener('progress', function (e) { | |
if (e.lengthComputable && e.total > 1 << 17) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#EXTM3U | |
#EXTINF:60,中国之声 | |
#EXTVLCOPT:network-caching=1000 | |
http://ngcdn001.cnr.cn/live/zgzs/index.m3u8 | |
#EXTINF:60,中国之声 low resolution | |
#EXTVLCOPT:network-caching=1000 | |
http://ngcdn001.cnr.cn/live/zgzs48/index.m3u8 | |
#EXTINF:60,经济之声 | |
#EXTVLCOPT:network-caching=1000 | |
http://ngcdn002.cnr.cn/live/jjzs/index.m3u8 |
NewerOlder