|
|
@@ -262,7 +262,7 @@ class PunchClocks extends Component {
|
|
|
Taro.showToast({ title: '定位错误,请联系管理员', icon: 'none' })
|
|
|
return;
|
|
|
}
|
|
|
- if ([5, 6].indexOf(dtails.type) === -1 && dayjs().isBefore(dtails.releaseStarts) || dayjs().isAfter(dtails.releaseEnds)) {
|
|
|
+ if ([5, 6].indexOf(dtails.type) === -1 && (dayjs().isBefore(dtails.releaseStarts) || dayjs().isAfter(dtails.releaseEnds))) {
|
|
|
Taro.hideLoading()
|
|
|
Taro.showToast({ title: '当前时间不在打卡时间范围内,无法打卡', icon: 'none' })
|
|
|
return;
|