Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
1457df17
Commit
1457df17
authored
Aug 16, 2023
by
muhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 商品视频字段相关
parent
8b5f29ae
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
13 deletions
+17
-13
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
...c/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FootPrintServiceImpl.java
...c/main/java/com/wwdz/ch/wx/impl/FootPrintServiceImpl.java
+4
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
+6
-6
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
+4
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/WxLoginServiceImpl.java
...src/main/java/com/wwdz/ch/wx/impl/WxLoginServiceImpl.java
+1
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FavoritesServiceImpl.java
View file @
1457df17
...
...
@@ -292,8 +292,8 @@ public class FavoritesServiceImpl implements FavoritesService {
vo
.
setCollectCount
(
String
.
format
(
"%.1f"
,
(
double
)
count
/
1000
)
+
"k"
);
}
Map
<
String
,
Object
>
homePageMap
=
new
HashMap
<>();
if
(
StringUtils
.
isNotBlank
(
item
.
getV
edi
os
()))
{
String
[]
vedioImage
=
item
.
getV
edi
os
().
split
(
";"
);
if
(
StringUtils
.
isNotBlank
(
item
.
getV
ide
os
()))
{
String
[]
vedioImage
=
item
.
getV
ide
os
().
split
(
";"
);
if
(
vedioImage
[
0
].
contains
(
","
))
{
String
[]
image
=
vedioImage
[
0
].
split
(
","
);
homePageMap
=
getImageMap
(
image
[
1
]);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FootPrintServiceImpl.java
View file @
1457df17
...
...
@@ -88,8 +88,8 @@ public class FootPrintServiceImpl implements FootPrintService {
itemResponseVo
.
setCollectCount
(
String
.
format
(
"%.1f"
,
(
double
)
count
/
1000
)
+
"k"
);
}
Map
<
String
,
Object
>
homePageMap
=
new
HashMap
<>();
if
(
StringUtils
.
isNotBlank
(
item
.
getV
edi
os
()))
{
String
[]
vedioImage
=
item
.
getV
edi
os
().
split
(
";"
);
if
(
StringUtils
.
isNotBlank
(
item
.
getV
ide
os
()))
{
String
[]
vedioImage
=
item
.
getV
ide
os
().
split
(
";"
);
if
(
vedioImage
[
0
].
contains
(
","
))
{
String
[]
image
=
vedioImage
[
0
].
split
(
","
);
homePageMap
=
getImageMap
(
image
[
1
]);
...
...
@@ -212,8 +212,8 @@ public class FootPrintServiceImpl implements FootPrintService {
itemResponseVo
.
setCollectCount
(
String
.
format
(
"%.1f"
,
(
double
)
count
/
1000
)
+
"k"
);
}
Map
<
String
,
Object
>
homePageMap
=
new
HashMap
<>();
if
(
StringUtils
.
isNotBlank
(
item
.
getV
edi
os
()))
{
String
[]
vedioImage
=
item
.
getV
edi
os
().
split
(
";"
);
if
(
StringUtils
.
isNotBlank
(
item
.
getV
ide
os
()))
{
String
[]
vedioImage
=
item
.
getV
ide
os
().
split
(
";"
);
if
(
vedioImage
[
0
].
contains
(
","
))
{
String
[]
image
=
vedioImage
[
0
].
split
(
","
);
homePageMap
=
getImageMap
(
image
[
1
]);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
View file @
1457df17
...
...
@@ -103,8 +103,8 @@ public class ItemServiceImpl implements ItemService {
vo
.
setIsMine
(
0
);
vo
.
setImages
(
item
.
getImages
());
Map
<
String
,
Object
>
homePageMap
=
new
HashMap
<>();
if
(
StringUtils
.
isNotBlank
(
item
.
getV
edi
os
()))
{
String
[]
vedioImage
=
item
.
getV
edi
os
().
split
(
";"
);
if
(
StringUtils
.
isNotBlank
(
item
.
getV
ide
os
()))
{
String
[]
vedioImage
=
item
.
getV
ide
os
().
split
(
";"
);
if
(
vedioImage
[
0
].
contains
(
","
))
{
String
[]
image
=
vedioImage
[
0
].
split
(
","
);
homePageMap
=
getImageMap
(
image
[
1
]);
...
...
@@ -173,7 +173,7 @@ public class ItemServiceImpl implements ItemService {
item
.
setSort
(
100
);
item
.
setImages
(
dto
.
getImages
());
if
(
StringUtils
.
isNotBlank
(
dto
.
getVideos
()))
{
item
.
setV
edi
os
(
getVediosImage
(
dto
.
getVideos
()));
item
.
setV
ide
os
(
getVediosImage
(
dto
.
getVideos
()));
}
item
.
setPrice
(
Long
.
parseLong
(
dto
.
getPrice
())
*
100
);
item
.
setDetail
(
dto
.
getDetail
());
...
...
@@ -221,9 +221,9 @@ public class ItemServiceImpl implements ItemService {
itemResponseVo
.
setName
(
item
.
getName
());
itemResponseVo
.
setImages
(
item
.
getImages
());
itemResponseVo
.
setVideos
(
null
);
if
(
StringUtils
.
isNotBlank
(
item
.
getV
edi
os
()))
{
if
(
StringUtils
.
isNotBlank
(
item
.
getV
ide
os
()))
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
String
[]
videos
=
item
.
getV
edi
os
().
split
(
";"
);
String
[]
videos
=
item
.
getV
ide
os
().
split
(
";"
);
for
(
String
s
:
videos
)
{
if
(
s
.
contains
(
","
))
{
String
[]
video
=
s
.
split
(
","
);
...
...
@@ -379,7 +379,7 @@ public class ItemServiceImpl implements ItemService {
item
.
setCid
(
dto
.
getCid
());
item
.
setImages
(
dto
.
getImages
());
if
(
StringUtils
.
isNotBlank
(
dto
.
getVideos
()))
{
item
.
setV
edi
os
(
getVediosImage
(
dto
.
getVideos
()));
item
.
setV
ide
os
(
getVediosImage
(
dto
.
getVideos
()));
}
item
.
setPrice
(
Long
.
parseLong
(
dto
.
getPrice
())
*
100
);
item
.
setDetail
(
dto
.
getDetail
());
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
View file @
1457df17
...
...
@@ -2,6 +2,7 @@ package com.wwdz.ch.wx.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.wwdz.ch.core.captcha.CaptchaCodeManager
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.notify.NotifyService
;
import
com.wwdz.ch.core.notify.NotifyType
;
import
com.wwdz.ch.core.notify.SmsResult
;
...
...
@@ -78,6 +79,9 @@ public class UserServiceImpl implements UserService {
if
(
StringUtils
.
equals
(
"phoneFalse"
,
mobile
))
{
return
Result
.
failed
(
"获取手机号失败"
);
}
if
(
StringUtils
.
equals
(
"decryptFalse"
,
mobile
))
{
return
Result
.
failed
(
ResultCode
.
FAILED
.
getCode
(),
"用户信息解密失败"
);
}
}
catch
(
Exception
e
)
{
logger
.
error
(
"获取微信用户手机号失败"
,
e
);
return
Result
.
failed
(
"获取微信用户手机号失败"
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/WxLoginServiceImpl.java
View file @
1457df17
...
...
@@ -83,7 +83,7 @@ public class WxLoginServiceImpl implements WxLoginService {
phone
=
wxMaPhoneNumberInfo
.
getPhoneNumber
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"解析手机号加密信息失败"
,
e
);
return
"
phone
False"
;
return
"
decrypt
False"
;
}
}
return
phone
;
...
...
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