|
@@ -328,8 +328,8 @@ class UserExchangeServices extends BaseServices
|
|
|
/** @var UserServices $userService */
|
|
|
$userService = app()->make(UserServices::class);
|
|
|
$user = $userService->getUserInfo($uid);
|
|
|
- if (date('w') != 1) {
|
|
|
- throw new ValidateException('兑换只能在周一申请');
|
|
|
+ if (date('w') != 6 && date('w') != 0 && date('w') != 7) {
|
|
|
+ throw new ValidateException('兑换只能在周末申请');
|
|
|
}
|
|
|
if (!$user) {
|
|
|
throw new ValidateException('数据不存在');
|