Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
4992cc1a
Commit
4992cc1a
authored
Aug 01, 2018
by
Menethil
Browse files
移除新建商品时自动创建分享图,若需要分享图暂时先点击商品更新一下就有
parent
9eaf2db3
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminGoodsController.java
View file @
4992cc1a
...
...
@@ -54,7 +54,7 @@ public class AdminGoodsController {
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
limit
,
@Sort
@RequestParam
(
defaultValue
=
"add_time"
)
String
sort
,
@Order
@RequestParam
(
defaultValue
=
"desc"
)
String
order
){
@Order
@RequestParam
(
defaultValue
=
"desc"
)
String
order
)
{
if
(
adminId
==
null
)
{
return
ResponseUtil
.
unlogin
();
}
...
...
@@ -191,10 +191,6 @@ public class AdminGoodsController {
// 商品基本信息表litemall_goods
goods
.
setAddTime
(
LocalDateTime
.
now
());
//将生成的分享图片地址写入数据库
qCodeService
.
createGoodShareImage
(
goods
.
getId
().
toString
(),
goods
.
getPicUrl
(),
goods
.
getName
());
goods
.
setShareUrl
(
qCodeService
.
getShareImageUrl
(
goods
.
getId
().
toString
()));
goodsService
.
add
(
goods
);
// 商品规格表litemall_goods_specification
...
...
@@ -276,7 +272,7 @@ public class AdminGoodsController {
}
@GetMapping
(
"/detail"
)
public
Object
detail
(
@LoginAdmin
Integer
adminId
,
@NotNull
Integer
id
){
public
Object
detail
(
@LoginAdmin
Integer
adminId
,
@NotNull
Integer
id
)
{
if
(
adminId
==
null
)
{
return
ResponseUtil
.
unlogin
();
}
...
...
Write
Preview
Supports
Markdown
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