Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zion
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
zion
Commits
817c63b0
提交
817c63b0
authored
10月 21, 2019
作者:
张光耀
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改了支付秘钥
上级
4fe374be
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
22 行删除
+30
-22
AESUtils.java
src/main/java/com/diaoyun/zion/master/util/AESUtils.java
+5
-5
domain.properties
src/main/resources/properties/domain.properties
+2
-2
email-template.ftl
src/main/resources/templates/email-template.ftl
+5
-5
ZionApplicationTests.java
src/test/java/com/diaoyun/zion/ZionApplicationTests.java
+18
-10
没有找到文件。
src/main/java/com/diaoyun/zion/master/util/AESUtils.java
浏览文件 @
817c63b0
...
...
@@ -62,9 +62,9 @@ public class AESUtils {
return
null
;
}
/*
public static void main(String[] args) {
String key = "``11qqaazzxxccvv"; // 128 bit key
System.out.println(encrypt(key, "123"));
System.out.println(decrypt(key, encrypt(key, "123")));
}
*/
public
static
void
main
(
String
[]
args
)
{
//
String key = "``11qqaazzxxccvv"; // 128 bit key
//
System.out.println(encrypt(key, "123"));
//
System.out.println(decrypt(key, encrypt(key, "123")));
}
}
src/main/resources/properties/domain.properties
浏览文件 @
817c63b0
...
...
@@ -36,8 +36,8 @@ tencent.wordpos.app_url=https://api.ai.qq.com/fcgi-bin/nlp/nlp_wordpos
################腾讯翻译配置 END###################
##################stripe公钥(不加密)和私钥(已用 AESUtils 加密)################################
stripe.pk
=
pk_
test_rXUSgU8Kw7DLhDzMbHM0r55O00JAzVBBJR
stripe.sk
=
3ff57yz9S5INBexBOnzi/ZaxClXkXlJ+FZ6XLc/f2vpESScG7YOaQaG2YNRic3HF
stripe.pk
=
pk_
live_5MdXU4N1cvmU1yatYp5v0E0n00C7tAXpGB
stripe.sk
=
d87UqTQ6QUjuNkXrjH51Gl/Zqnfy98HRl23xljism2hpaXjSNTwdl6pv6FM7D4tT
######################outlook的账户公钥密钥#####################
#stripe.pk=pk_test_uljWJWUuD8fzZXPlGtDZ1fxx00o1ZKr7QL
#stripe.sk=BbLXgo+ohgrAP7p3tB52YTqNwhAiTYzYWAX0W+/1PES6kOupxwc/7xpAR8QsG6gP
...
...
src/main/resources/templates/email-template.ftl
浏览文件 @
817c63b0
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
Chinafrica
Verification
</title>
<title>
Afrishop
Verification
</title>
</head>
<body>
...
...
@@ -49,7 +49,7 @@
<td
width=
"24"
>
</td>
<td
colspan=
"2"
style=
"color:#858585; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:20px; padding-top:18px;"
>
${nick},welcome to Chinafrica
!Before we get started, we need to quickly verify your email address.
${nick},welcome to Afrishop
!Before we get started, we need to quickly verify your email address.
</td>
<td
width=
"24"
>
</td>
</tr>
...
...
@@ -74,7 +74,7 @@
<td
width=
"24"
>
</td>
<td
colspan=
"2"
style=
"color:#858585; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:20px; padding-top:18px; padding-bottom:32px; border-bottom:1px solid #e1e1e1;"
>
By
Chinafrica
By
Afrishop
</td>
</tr>
...
...
@@ -95,7 +95,7 @@
<style
type=
"text/css"
>
.qmbox
style
,
.qmbox
script
,
.qmbox
head
,
.qmbox
link
,
.qmbox
meta
{
display
:
none
!important
;
}
</style>
display
:
none
!important
;
}
</style>
</body>
</html>
src/test/java/com/diaoyun/zion/ZionApplicationTests.java
浏览文件 @
817c63b0
...
...
@@ -367,7 +367,7 @@ public class ZionApplicationTests {
*
* @param usableSibUrl
* @return
*/
private String deleteLoginModule(String usableSibUrl) {
usableSibUrl = usableSibUrl.replaceAll("couponActivity", "");
usableSibUrl = usableSibUrl.replaceAll("soldQuantity", "");
...
...
@@ -378,7 +378,8 @@ public class ZionApplicationTests {
usableSibUrl = usableSibUrl.replaceAll("delivery", "");
return usableSibUrl;
}
*/
/*
//使用序列化的方式保存CookieStore到本地文件,方便后续的读取使用
private static void saveCookieStore(CookieStore cookieStore, String savePath) throws IOException {
...
...
@@ -387,8 +388,8 @@ public class ZionApplicationTests {
os.writeObject(cookieStore);
os.close();
}
}
*/
/*
//读取Cookie的序列化文件,读取后可以直接使用
private static CookieStore readCookieStore(String savePath) throws IOException, ClassNotFoundException {
...
...
@@ -399,8 +400,8 @@ public class ZionApplicationTests {
return cookieStore;
}
}
*/
/*
private List<NameValuePair> setHttpParams(Map<String, Object> paramsMap) {
List<NameValuePair> list = new ArrayList<NameValuePair>();
for (String key : paramsMap.keySet()) {
...
...
@@ -408,7 +409,8 @@ public class ZionApplicationTests {
}
return list;
}
*/
/*
@Test
public void testDate() throws ParseException {
...
...
@@ -419,8 +421,8 @@ public class ZionApplicationTests {
String s = String.valueOf(it);
System.out.println(s);
}
}
*/
/*
@Test
public void testP(){
...
...
@@ -428,6 +430,12 @@ public class ZionApplicationTests {
BigDecimal de=new BigDecimal("100");
decimal.divide(de,2,BigDecimal.ROUND_HALF_UP);
}
}
*/
@Test
public
void
testAesut
(){
String
a
=
AESUtils
.
encrypt
(
KeyConstant
.
AES_KEY
,
"sk_live_YbAVymUjl4ZEVGfzeyHyRTKM00JviD18nI"
);
System
.
out
.
println
(
a
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论