Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9dd55e90
authored
Jan 12, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加日志记录
parent
07aab597
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
controller/sku_ladderprice_controller.go
controller/sku_ladderprice_controller.go
View file @
9dd55e90
...
...
@@ -4,6 +4,7 @@ import (
"github.com/gin-gonic/gin"
"go_sku_server/model"
"go_sku_server/pkg/common"
"go_sku_server/pkg/logger"
"go_sku_server/service"
)
...
...
@@ -28,10 +29,8 @@ import (
参考业务逻辑:http://119.23.72.7/ymx/GoodsMachining/blob/master/app/Http/Controllers/ServicesController.php#L66
*/
func
SkuLadderprice
(
ctx
*
gin
.
Context
)
{
//ctx.Request.ParseMultipartForm(32 << 20)
//postForm := ctx.Request.Form
if
ladderPriceRequest
,
err
:=
model
.
NewPriceRequest
(
ctx
);
err
!=
nil
{
logger
.
Log
(
common
.
GetRequestParam
(
ctx
)
+
err
.
Error
(),
"ladder_price"
,
1
)
common
.
Output
(
ctx
,
err
.
Code
,
err
.
Error
(),
""
)
}
else
{
goodsInfo
:=
CommonController
(
ctx
)
//获取商品详情(调用树贤和黄哥之前写好的Controller)
...
...
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