Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
browser-backend
Commits
d333b1f9
Commit
d333b1f9
authored
Oct 15, 2020
by
xuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updateShop接口调试
parent
6c78874c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ShopController.java
...gec/browserbackend/browser/controller/ShopController.java
+4
-3
ShopServiceImpl.java
.../browserbackend/browser/service/Impl/ShopServiceImpl.java
+3
-0
No files found.
src/main/java/com/edgec/browserbackend/browser/controller/ShopController.java
View file @
d333b1f9
...
@@ -91,7 +91,8 @@ public class ShopController {
...
@@ -91,7 +91,8 @@ public class ShopController {
resultDto
.
setData
(
shopStringResultDto
);
resultDto
.
setData
(
shopStringResultDto
);
resultDto
.
setStatus
(
0
);
resultDto
.
setStatus
(
0
);
}
catch
(
ClientRequestException
e
)
{
}
catch
(
ClientRequestException
e
)
{
log
.
error
(
"{}, Exception : {}"
,
logs
,
e
.
getMessage
(),
e
);
shopResultDto
.
setShopCookie
(
""
);
log
.
error
(
"{} step-2, Exception : {},{},{}"
,
logs
,
principal
.
getName
(),
JSONObject
.
toJSONString
(
shopResultDto
),
e
.
getMessage
(),
e
);
dealClientRequestException
(
resultDto
,
e
);
dealClientRequestException
(
resultDto
,
e
);
}
}
return
resultDto
;
return
resultDto
;
...
@@ -196,7 +197,7 @@ public class ShopController {
...
@@ -196,7 +197,7 @@ public class ShopController {
}
catch
(
ClientRequestException
e
)
{
}
catch
(
ClientRequestException
e
)
{
//log.error("{}, Exception : {}", logs, e.getMessage(), e);
//log.error("{}, Exception : {}", logs, e.getMessage(), e);
dealClientRequestException
(
resultDto
,
e
);
dealClientRequestException
(
resultDto
,
e
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
)
{
log
.
error
(
"{}, Exception : {}"
,
logs
,
e
.
getMessage
(),
e
);
log
.
error
(
"{}, Exception : {}"
,
logs
,
e
.
getMessage
(),
e
);
}
}
return
resultDto
;
return
resultDto
;
...
@@ -221,7 +222,7 @@ public class ShopController {
...
@@ -221,7 +222,7 @@ public class ShopController {
}
catch
(
ClientRequestException
e
)
{
}
catch
(
ClientRequestException
e
)
{
//log.error("{}, Exception : {}", logs, e.getMessage(), e);
//log.error("{}, Exception : {}", logs, e.getMessage(), e);
dealClientRequestException
(
resultDto
,
e
);
dealClientRequestException
(
resultDto
,
e
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
)
{
log
.
error
(
"{}, Exception : {}"
,
logs
,
e
.
getMessage
(),
e
);
log
.
error
(
"{}, Exception : {}"
,
logs
,
e
.
getMessage
(),
e
);
}
}
return
resultDto
;
return
resultDto
;
...
...
src/main/java/com/edgec/browserbackend/browser/service/Impl/ShopServiceImpl.java
View file @
d333b1f9
package
com
.
edgec
.
browserbackend
.
browser
.
service
.
Impl
;
package
com
.
edgec
.
browserbackend
.
browser
.
service
.
Impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.edgec.browserbackend.account.domain.Account
;
import
com.edgec.browserbackend.account.domain.Account
;
import
com.edgec.browserbackend.account.exception.AccountErrorCode
;
import
com.edgec.browserbackend.account.exception.AccountErrorCode
;
import
com.edgec.browserbackend.account.repository.AccountRepository
;
import
com.edgec.browserbackend.account.repository.AccountRepository
;
...
@@ -193,6 +194,8 @@ public class ShopServiceImpl implements ShopService {
...
@@ -193,6 +194,8 @@ public class ShopServiceImpl implements ShopService {
// 2.查询当前店铺是否已经绑定当前用户
// 2.查询当前店铺是否已经绑定当前用户
UserShop
userShop
=
userShopRepository
.
findByUsernameAndShopId
(
username
,
shopResultDto
.
getShopId
());
UserShop
userShop
=
userShopRepository
.
findByUsernameAndShopId
(
username
,
shopResultDto
.
getShopId
());
if
(
userShop
==
null
)
{
if
(
userShop
==
null
)
{
shopResultDto
.
setShopCookie
(
""
);
logger
.
error
(
"{} step-1, Exception : {},{}"
,
"【updateShop】 "
,
username
,
JSONObject
.
toJSONString
(
shopResultDto
));
throw
new
ClientRequestException
(
BrowserErrorCode
.
SHOPNOTEXIST
);
throw
new
ClientRequestException
(
BrowserErrorCode
.
SHOPNOTEXIST
);
}
}
...
...
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