Browse Source

Merge branch 'master' of http://git.qiniu1314.com/Kirin/shenying

Kirin 8 months ago
parent
commit
20f272dbbd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/services/user/UserExchangeServices.php

+ 2 - 2
app/services/user/UserExchangeServices.php

@@ -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('数据不存在');