Commit b47ee119 by wang

修改一部分

parent 76ecfcc4
Showing with 1 additions and 1 deletions
...@@ -52,7 +52,7 @@ func SaveSku(ctx *gin.Context) { ...@@ -52,7 +52,7 @@ func SaveSku(ctx *gin.Context) {
LySave:=service.LySaveService{} LySave:=service.LySaveService{}
serviceErr:=LySave.SaveSku(lySaveRequest,ctx) serviceErr:=LySave.SaveSku(lySaveRequest,ctx)
//执行报错 //错误处理
if(serviceErr!=nil){ if(serviceErr!=nil){
if err,ok:=serviceErr.(*e.ApiError);ok{ if err,ok:=serviceErr.(*e.ApiError);ok{
common.Output(ctx,err.Code,err.ErrMsg,nil) common.Output(ctx,err.Code,err.ErrMsg,nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment