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
6c0c6a6f
Commit
6c0c6a6f
authored
Sep 03, 2018
by
gaopeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C729_视频改版
parent
3b48cfc7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
5 deletions
+36
-5
ConvertEnum.java
...ain/java/com/pcloud/common/core/constant/ConvertEnum.java
+6
-1
ProductTypeConstant.java
.../com/pcloud/common/core/constant/ProductTypeConstant.java
+17
-2
Cookie.java
.../src/main/java/com/pcloud/common/utils/cookie/Cookie.java
+13
-2
No files found.
pcloud-common-core/src/main/java/com/pcloud/common/core/constant/ConvertEnum.java
View file @
6c0c6a6f
...
@@ -74,7 +74,12 @@ public enum ConvertEnum {
...
@@ -74,7 +74,12 @@ public enum ConvertEnum {
/**
/**
* 直播工具
* 直播工具
*/
*/
LIVE_APP
(
"LIVE_APP"
,
"convert2LiveApp"
);
LIVE_APP
(
"LIVE_APP"
,
"convert2LiveApp"
),
/**
* 视频课
*/
VIDEO_LESSON
(
"VIDEO_LESSON"
,
"convert2VideoLesson"
);
/**
/**
* 值
* 值
...
...
pcloud-common-core/src/main/java/com/pcloud/common/core/constant/ProductTypeConstant.java
View file @
6c0c6a6f
...
@@ -183,11 +183,26 @@ public class ProductTypeConstant {
...
@@ -183,11 +183,26 @@ public class ProductTypeConstant {
public
static
final
String
PBMUSIC
=
"PBMUSIC"
;
public
static
final
String
PBMUSIC
=
"PBMUSIC"
;
/**
/**
* 绘本资源
*/
public
static
final
String
MUSIC
=
"MUSIC"
;
/**
* 一对一辅导
* 一对一辅导
*/
*/
public
static
final
String
TUTORIAL
=
"TUTORIAL"
;
public
static
final
String
TUTORIAL
=
"TUTORIAL"
;
/**
/**
* 视频课表
*/
public
static
final
String
VIDEO_SCHEDULE
=
"VIDEO_SCHEDULE"
;
/**
* 视频课表
*/
public
static
final
String
VIDEO_COURSE
=
"VIDEO_COURSE"
;
/**
* 热门作品类型
* 热门作品类型
*/
*/
public
static
final
String
[]
HOT_PRODUCT_TYPE
=
{
QA
,
PDF
,
VIDEO
,
PRETEST
};
public
static
final
String
[]
HOT_PRODUCT_TYPE
=
{
QA
,
PDF
,
VIDEO
,
PRETEST
};
...
@@ -196,7 +211,7 @@ public class ProductTypeConstant {
...
@@ -196,7 +211,7 @@ public class ProductTypeConstant {
* 资源型作品(免费即可体验)
* 资源型作品(免费即可体验)
*/
*/
public
static
final
String
[]
RESOURCE_PRODUCT
=
{
AUDIO
,
VIDEO
,
PDF
,
EBOOK
,
ALBUM
,
PRETEST
,
QANEWS
,
public
static
final
String
[]
RESOURCE_PRODUCT
=
{
AUDIO
,
VIDEO
,
PDF
,
EBOOK
,
ALBUM
,
PRETEST
,
QANEWS
,
FORMAT
,
WORD
,
ARTICLE
,
LISTEN
,
SCHEDULE
,
PBMUSIC
,
TUTORIAL
};
FORMAT
,
WORD
,
ARTICLE
,
LISTEN
,
SCHEDULE
,
PBMUSIC
,
TUTORIAL
,
VIDEO_SCHEDULE
};
/**
/**
* 服务型作品(需要特殊操作方可完成使用)
* 服务型作品(需要特殊操作方可完成使用)
...
@@ -206,7 +221,7 @@ public class ProductTypeConstant {
...
@@ -206,7 +221,7 @@ public class ProductTypeConstant {
/**
/**
* 应用型作品(伴随应用使用)
* 应用型作品(伴随应用使用)
*/
*/
public
static
final
String
[]
APP_PRODUCT
=
{
LOOK
,
LIVE
,
TUTOR
,
GROUP
,
ZSCORE
,
VOTE
,
CLOCK
,
TEST
,
AUDIOAPP
,
ANSWER
,
EF
};
public
static
final
String
[]
APP_PRODUCT
=
{
LOOK
,
LIVE
,
TUTOR
,
GROUP
,
ZSCORE
,
VOTE
,
CLOCK
,
TEST
,
AUDIOAPP
,
ANSWER
,
EF
,
MUSIC
,
VIDEO_COURSE
};
/**
/**
* 数据平台埋点型作品
* 数据平台埋点型作品
...
...
pcloud-common/src/main/java/com/pcloud/common/utils/cookie/Cookie.java
View file @
6c0c6a6f
...
@@ -84,6 +84,11 @@ public class Cookie {
...
@@ -84,6 +84,11 @@ public class Cookie {
public
static
final
String
PREVIEW_TYPE
=
"previewType"
;
public
static
final
String
PREVIEW_TYPE
=
"previewType"
;
/**
/**
* 二维码ID来源
*/
public
static
final
String
SOURCE_TYPE
=
"sourceType"
;
/**
* cookie 信息處理
* cookie 信息處理
* @param userInfo
* @param userInfo
* @return
* @return
...
@@ -174,10 +179,16 @@ public class Cookie {
...
@@ -174,10 +179,16 @@ public class Cookie {
userInfos
.
put
(
"agentMemberId"
,
StringUtil
.
isEmpty
(
agentMemberId
)
||
"undefined"
.
equalsIgnoreCase
(
agentMemberId
)
userInfos
.
put
(
"agentMemberId"
,
StringUtil
.
isEmpty
(
agentMemberId
)
||
"undefined"
.
equalsIgnoreCase
(
agentMemberId
)
||
"null"
.
equalsIgnoreCase
(
agentMemberId
)
?
null
:
Long
.
valueOf
(
agentMemberId
));
||
"null"
.
equalsIgnoreCase
(
agentMemberId
)
?
null
:
Long
.
valueOf
(
agentMemberId
));
}
}
if
(
userInfoArry
[
i
].
contains
(
"previewType"
))
{
// add by gaop
if
(
userInfoArry
[
i
].
contains
(
PREVIEW_TYPE
))
{
String
[]
previewType
=
userInfoArry
[
i
].
split
(
"="
);
String
[]
previewType
=
userInfoArry
[
i
].
split
(
"="
);
String
code
=
previewType
[
previewType
.
length
-
1
];
String
code
=
previewType
[
previewType
.
length
-
1
];
userInfos
.
put
(
"previewType"
,
code
);
userInfos
.
put
(
PREVIEW_TYPE
,
code
);
}
if
(
userInfoArry
[
i
].
contains
(
SOURCE_TYPE
))
{
String
[]
sourceType
=
userInfoArry
[
i
].
split
(
"="
);
String
code
=
sourceType
[
sourceType
.
length
-
1
];
userInfos
.
put
(
SOURCE_TYPE
,
code
);
}
}
}
}
return
userInfos
;
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