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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
1 deletions
+41
-1
MQTopicProducer.java
...java/com/pcloud/common/core/constant/MQTopicProducer.java
+0
-0
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
This diff is collapsed.
Click to expand it.
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