Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
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
pseer
gxpt_ht
Commits
53d83141
Commit
53d83141
authored
Oct 25, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix;
parent
7596697d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
FrontTokenInterceptor.java
...ain/java/share/web/interceptor/FrontTokenInterceptor.java
+2
-2
OrderComputedPriceRequest.java
.../java/share/system/request/OrderComputedPriceRequest.java
+7
-6
No files found.
share-front/src/main/java/share/web/interceptor/FrontTokenInterceptor.java
View file @
53d83141
...
@@ -62,14 +62,14 @@ public class FrontTokenInterceptor implements HandlerInterceptor {
...
@@ -62,14 +62,14 @@ public class FrontTokenInterceptor implements HandlerInterceptor {
SConsumer
userEntry
=
frontTokenComponent
.
getLoginSConsumerEntry
(
request
);
SConsumer
userEntry
=
frontTokenComponent
.
getLoginSConsumerEntry
(
request
);
if
(
userEntry
!=
null
){
if
(
userEntry
!=
null
){
FrontTokenComponent
.
loginSConsumerEntryThreadLocal
.
set
(
userEntry
);
FrontTokenComponent
.
loginSConsumerEntryThreadLocal
.
set
(
userEntry
);
}
else
{
}
/*
else {
token = "f788beab1ea14f0ab3a369e4c66ee627";
token = "f788beab1ea14f0ab3a369e4c66ee627";
userEntry = new SConsumer();
userEntry = new SConsumer();
userEntry.setId(1714160213741535234L);
userEntry.setId(1714160213741535234L);
userEntry.setAccount("15527462530");
userEntry.setAccount("15527462530");
userEntry.setPhone("15527462530");
userEntry.setPhone("15527462530");
FrontTokenComponent.loginSConsumerEntryThreadLocal.set(userEntry);
FrontTokenComponent.loginSConsumerEntryThreadLocal.set(userEntry);
}
}
*/
if
(
token
==
null
||
token
.
isEmpty
()
||
userEntry
==
null
){
if
(
token
==
null
||
token
.
isEmpty
()
||
userEntry
==
null
){
//判断路由,部分路由不管用户是否登录都可以访问
//判断路由,部分路由不管用户是否登录都可以访问
boolean
result
=
frontTokenComponent
.
checkRouter
(
RequestUtil
.
getUri
(
request
));
boolean
result
=
frontTokenComponent
.
checkRouter
(
RequestUtil
.
getUri
(
request
));
...
...
share-system/src/main/java/share/system/request/OrderComputedPriceRequest.java
View file @
53d83141
...
@@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
...
@@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -19,11 +20,11 @@ import java.util.Date;
...
@@ -19,11 +20,11 @@ import java.util.Date;
@ApiModel
(
value
=
"OrderComputedPriceRequest对象"
,
description
=
"计算订单价格请求对象"
)
@ApiModel
(
value
=
"OrderComputedPriceRequest对象"
,
description
=
"计算订单价格请求对象"
)
public
class
OrderComputedPriceRequest
{
public
class
OrderComputedPriceRequest
{
@ApiModelProperty
(
value
=
"门店ID"
,
required
=
true
)
@ApiModelProperty
(
value
=
"门店ID"
,
required
=
true
)
@Not
Blank
(
message
=
"门店ID不能为空"
)
@Not
Null
(
message
=
"门店ID不能为空"
)
private
Long
storeId
;
private
Long
storeId
;
@ApiModelProperty
(
value
=
"房间ID"
,
required
=
true
)
@ApiModelProperty
(
value
=
"房间ID"
,
required
=
true
)
@Not
Blank
(
message
=
"房间ID不能为空"
)
@Not
Null
(
message
=
"房间ID不能为空"
)
private
Long
roomId
;
private
Long
roomId
;
@ApiModelProperty
(
value
=
"优惠券id"
)
@ApiModelProperty
(
value
=
"优惠券id"
)
...
@@ -33,20 +34,20 @@ public class OrderComputedPriceRequest {
...
@@ -33,20 +34,20 @@ public class OrderComputedPriceRequest {
private
Long
packId
;
private
Long
packId
;
@ApiModelProperty
(
value
=
"订单类型(0:订房订单,1:续房订单,2:充值订单)"
,
required
=
true
)
@ApiModelProperty
(
value
=
"订单类型(0:订房订单,1:续房订单,2:充值订单)"
,
required
=
true
)
@Not
Blank
(
message
=
"订单类型不能为空"
)
@Not
Null
(
message
=
"订单类型不能为空"
)
private
Integer
orderType
;
private
Integer
orderType
;
@ApiModelProperty
(
value
=
"购买方式(1:小时,2:套餐)"
,
required
=
true
)
@ApiModelProperty
(
value
=
"购买方式(1:小时,2:套餐)"
,
required
=
true
)
@Not
Blank
(
message
=
"购买方式不能为空"
)
@Not
Null
(
message
=
"购买方式不能为空"
)
private
Integer
buyType
;
private
Integer
buyType
;
/** 预约开始时间 */
/** 预约开始时间 */
@ApiModelProperty
(
value
=
"预约开始时间 yyyy-MM-dd HH:mm"
,
required
=
true
)
@ApiModelProperty
(
value
=
"预约开始时间 yyyy-MM-dd HH:mm"
,
required
=
true
)
@Not
Blank
(
message
=
"预约开始时间不能为空"
)
@Not
Null
(
message
=
"预约开始时间不能为空"
)
private
Date
preStartDate
;
private
Date
preStartDate
;
/** 预约结束时间 */
/** 预约结束时间 */
@ApiModelProperty
(
value
=
"预约结束时间 yyyy-MM-dd HH:mm"
,
required
=
true
)
@ApiModelProperty
(
value
=
"预约结束时间 yyyy-MM-dd HH:mm"
,
required
=
true
)
@Not
Blank
(
message
=
"预约结束时间不能为空"
)
@Not
Null
(
message
=
"预约结束时间不能为空"
)
private
Date
preEndDate
;
private
Date
preEndDate
;
}
}
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