Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
ae5898e5
Commit
ae5898e5
authored
May 16, 2019
by
gaopeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社群书合代码
parent
cc9c2c54
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
2 deletions
+64
-2
MQTopicProducer.java
...java/com/pcloud/common/core/constant/MQTopicProducer.java
+23
-1
NotifyOriginTypeEnum.java
...va/com/pcloud/common/core/enums/NotifyOriginTypeEnum.java
+6
-1
Cookie.java
.../src/main/java/com/pcloud/common/utils/cookie/Cookie.java
+35
-0
No files found.
pcloud-common-core/src/main/java/com/pcloud/common/core/constant/MQTopicProducer.java
View file @
ae5898e5
...
...
@@ -76,13 +76,15 @@ public class MQTopicProducer {
*/
public
static
final
String
TIP
=
"topic.tip"
;
/**
* 打赏给读者
* 给读者的打赏
*/
public
static
final
String
TIP_FOR_WECHAT_USER
=
"topic.tipForWechatUser"
;
/**
* GENUINE
*/
public
static
final
String
GENUINE
=
"topic.genuine"
;
/**
* 订单完成
*/
...
...
@@ -307,4 +309,24 @@ public class MQTopicProducer {
* 更新用户头像
*/
public
static
final
String
UPDATE_USER_HEADURL
=
"topic.updateUserHeadUrl"
;
/**
* 入群
*/
public
static
final
String
ADD_WXGROUP
=
"topic.addWXGroup"
;
/**
* 微信群发送文字消息
*/
public
static
final
String
WXGROUP_SEND_TEXT
=
"topic.WXGroupSendText"
;
/**
* 新用户消息
*/
public
static
final
String
PUSH_ADD_USER_MESSAGE
=
"topic.pushAddUserMessage"
;
/**
* 签到打卡作者返现TOPIC
*/
public
static
final
String
ATTENDANCETASK_CASHBACK_MERCHANT
=
"topic.attendancetaskCashbackMerchant"
;
}
pcloud-common-core/src/main/java/com/pcloud/common/core/enums/NotifyOriginTypeEnum.java
View file @
ae5898e5
...
...
@@ -20,7 +20,12 @@ public enum NotifyOriginTypeEnum {
/**
* 订单
*/
ORDERNUM
(
"ORDERNUM"
);
ORDERNUM
(
"ORDERNUM"
),
/**
* 社群书
*/
BOOK_GROUP
(
"BOOK_GROUP"
);
/**
* 值
...
...
pcloud-common/src/main/java/com/pcloud/common/utils/cookie/Cookie.java
View file @
ae5898e5
...
...
@@ -99,6 +99,21 @@ public class Cookie {
public
static
final
String
SECOND_TD
=
"secondTd"
;
/**
* 社群码ID
*/
public
static
final
String
BOOK_GROUP_ID
=
"bookGroupId"
;
/**
* 群分类ID
*/
public
static
final
String
CLASSIFY_ID
=
"classifyId"
;
/**
* 微信群ID
*/
public
static
final
String
QRCODE_ID
=
"qrcodeId"
;
/**
* cookie 信息處理
* @param userInfo
* @return
...
...
@@ -214,6 +229,26 @@ public class Cookie {
userInfos
.
put
(
SECOND_TD
,
StringUtil
.
isEmpty
(
code
)
||
"undefined"
.
equalsIgnoreCase
(
code
)
||
"null"
.
equalsIgnoreCase
(
code
)
?
null
:
NumberUtil
.
toLong
(
code
));
}
// add by gaop at 2019年5月6日16:23:32
if
(
userInfoArry
[
i
].
contains
(
BOOK_GROUP_ID
))
{
String
[]
bookGroupId
=
userInfoArry
[
i
].
split
(
"="
);
String
code
=
bookGroupId
[
bookGroupId
.
length
-
1
];
userInfos
.
put
(
BOOK_GROUP_ID
,
StringUtil
.
isEmpty
(
code
)
||
"undefined"
.
equalsIgnoreCase
(
code
)
||
"null"
.
equalsIgnoreCase
(
code
)
?
null
:
NumberUtil
.
toLong
(
code
));
}
if
(
userInfoArry
[
i
].
contains
(
CLASSIFY_ID
))
{
String
[]
classifyId
=
userInfoArry
[
i
].
split
(
"="
);
String
code
=
classifyId
[
classifyId
.
length
-
1
];
userInfos
.
put
(
CLASSIFY_ID
,
StringUtil
.
isEmpty
(
code
)
||
"undefined"
.
equalsIgnoreCase
(
code
)
||
"null"
.
equalsIgnoreCase
(
code
)
?
null
:
NumberUtil
.
toLong
(
code
));
}
if
(
userInfoArry
[
i
].
contains
(
QRCODE_ID
))
{
String
[]
qrcodeId
=
userInfoArry
[
i
].
split
(
"="
);
String
code
=
qrcodeId
[
qrcodeId
.
length
-
1
];
userInfos
.
put
(
QRCODE_ID
,
StringUtil
.
isEmpty
(
code
)
||
"undefined"
.
equalsIgnoreCase
(
code
)
||
"null"
.
equalsIgnoreCase
(
code
)
?
null
:
NumberUtil
.
toLong
(
code
));
}
}
return
userInfos
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment