Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
ead2a8f5
Commit
ead2a8f5
authored
Nov 16, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix_1115' into dev
parents
60e11444
e12a4449
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
12 deletions
+13
-12
FeignBackClientForActivity.java
.../community/feign/activity/FeignBackClientForActivity.java
+1
-3
FeignClientForActivity.java
...anpu/community/feign/activity/FeignClientForActivity.java
+2
-1
HomePageManager.java
...ain/java/com/tanpu/community/manager/HomePageManager.java
+2
-1
OSSFileService.java
...main/java/com/tanpu/community/service/OSSFileService.java
+1
-1
ESHelper.java
.../main/java/com/tanpu/community/service/base/ESHelper.java
+1
-1
ConvertUtil.java
...e/src/main/java/com/tanpu/community/util/ConvertUtil.java
+5
-2
TencentcloudUtils.java
...main/java/com/tanpu/community/util/TencentcloudUtils.java
+1
-3
No files found.
community-service/src/main/java/com/tanpu/community/feign/activity/FeignBackClientForActivity.java
View file @
ead2a8f5
package
com
.
tanpu
.
community
.
feign
.
activity
;
import
com.alibaba.fastjson.JSONObject
;
import
com.tanpu.common.api.CommonResp
;
import
com.tanpu.community.api.beans.req.page.Page
;
import
com.tanpu.community.api.beans.vo.feign.activity.OfflineActivitySimpleResp
;
import
feign.hystrix.FallbackFactory
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -32,7 +30,7 @@ public class FeignBackClientForActivity implements FallbackFactory<FeignClientFo
}
@Override
public
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
queryCorpHomeActivityList
(
String
orgId
)
{
public
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
queryCorpHomeActivityList
(
String
orgId
,
String
userId
)
{
log
.
error
(
"请求信息"
,
throwable
);
log
.
error
(
"FeignClientForActivity.offlineActivityDetail-查询活动orgId:{}"
,
orgId
);
return
CommonResp
.
error
();
...
...
community-service/src/main/java/com/tanpu/community/feign/activity/FeignClientForActivity.java
View file @
ead2a8f5
...
...
@@ -24,5 +24,6 @@ public interface FeignClientForActivity {
@ApiOperation
(
"线下活动列表-查询机构首页线下活动列表"
)
@GetMapping
(
value
=
"/offlineActivity/inter/queryCorpHomeActivityList"
)
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
queryCorpHomeActivityList
(
@ApiParam
(
"活动id"
)
@RequestParam
(
value
=
"corpId"
)
String
corpId
);
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
queryCorpHomeActivityList
(
@ApiParam
(
"活动id"
)
@RequestParam
(
value
=
"corpId"
)
String
corpId
,
@ApiParam
(
"用户id"
)
@RequestParam
(
value
=
"userId"
)
String
userId
);
}
community-service/src/main/java/com/tanpu/community/manager/HomePageManager.java
View file @
ead2a8f5
...
...
@@ -184,7 +184,8 @@ public class HomePageManager {
userInfoNew
.
setUserInfoOrgList
(
userInfoOrgs
);
}
// 家办活动
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
activitySimpleResps
=
feignClientForActivity
.
queryCorpHomeActivityList
(
userInfoNew
.
getUserInfoNewOrg
().
getCorpId
());
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
activitySimpleResps
=
feignClientForActivity
.
queryCorpHomeActivityList
(
userInfoNew
.
getUserInfoNewOrg
().
getCorpId
(),
userId
);
if
(
activitySimpleResps
.
isSuccess
()
&&
CollectionUtils
.
isNotEmpty
(
activitySimpleResps
.
getData
()))
{
List
<
OfflineActivitySimpleResp
>
activities
=
activitySimpleResps
.
getData
();
if
(
CollectionUtils
.
isNotEmpty
(
activities
))
{
...
...
community-service/src/main/java/com/tanpu/community/service/OSSFileService.java
View file @
ead2a8f5
...
...
@@ -105,7 +105,7 @@ public class OSSFileService {
try
{
bi
=
ImageIO
.
read
(
bins
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"{}"
,
e
.
getMessage
(),
e
);
}
HashMap
<
String
,
Integer
>
attr
=
new
HashMap
<>();
if
(
bi
!=
null
)
{
...
...
community-service/src/main/java/com/tanpu/community/service/base/ESHelper.java
View file @
ead2a8f5
...
...
@@ -164,7 +164,7 @@ public class ESHelper {
System
.
out
.
println
(
hit
.
getFields
());
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//
e.printStackTrace();
}
System
.
out
.
println
(
"done"
);
...
...
community-service/src/main/java/com/tanpu/community/util/ConvertUtil.java
View file @
ead2a8f5
...
...
@@ -47,9 +47,12 @@ public class ConvertUtil {
themeQO
.
setCreateTime
(
TimeUtils
.
getTimestampOfDateTime
(
themeEntity
.
getCreateTime
()));
themeQO
.
setUpToNowTime
(
TimeUtils
.
calUpToNowTime
(
themeEntity
.
getCreateTime
()));
themeQO
.
setFormatTime
(
TimeUtils
.
format
(
themeEntity
.
getCreateTime
()));
// 屏蔽手机号和邮箱
List
<
ThemeContentQo
>
themeContentQos
=
JsonUtil
.
toBean
(
OtherUtil
.
blockPhoneAndEmail
(
themeEntity
.
getContent
()
),
new
TypeReference
<
List
<
ThemeContentQo
>>()
{
List
<
ThemeContentQo
>
themeContentQos
=
JsonUtil
.
toBean
(
themeEntity
.
getContent
(
),
new
TypeReference
<
List
<
ThemeContentQo
>>()
{
});
// 屏蔽手机号和邮箱
themeContentQos
.
stream
().
filter
(
o
->
RelTypeEnum
.
TEXT
.
type
.
equals
(
o
.
getType
())).
forEach
(
o
->
o
.
setValue
(
OtherUtil
.
blockPhoneAndEmail
(
o
.
getValue
())));
themeQO
.
setContent
(
themeContentQos
);
return
themeQO
;
}
...
...
community-service/src/main/java/com/tanpu/community/util/TencentcloudUtils.java
View file @
ead2a8f5
...
...
@@ -91,7 +91,6 @@ public class TencentcloudUtils {
}
}
catch
(
TencentCloudSDKException
e
)
{
log
.
error
(
"调用腾文本内容安全异常"
);
e
.
printStackTrace
();
//调用失败时,不影响用户发布主题
return
""
;
}
...
...
@@ -115,7 +114,6 @@ public class TencentcloudUtils {
}
}
catch
(
TencentCloudSDKException
e
)
{
log
.
error
(
"调用腾讯图片内容检测异常"
);
e
.
printStackTrace
();
return
CommonResp
.
failed
(
"图片检查异常"
);
}
return
CommonResp
.
success
();
...
...
@@ -138,7 +136,7 @@ public class TencentcloudUtils {
System
.
out
.
println
(
Arrays
.
toString
(
res
.
getKeywords
()));
System
.
out
.
println
(
imgRes
.
getData
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//
e.printStackTrace();
}
}
...
...
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