zz 3 years ago
parent
commit
de04a5d2cf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Modules/User/Services/SignService.php

+ 2 - 2
app/Modules/User/Services/SignService.php

@@ -36,7 +36,7 @@ class SignService
         if (!$date || $date != date('Y-m-d')) {
         if (!$date || $date != date('Y-m-d')) {
             $reward = $this->getRewardCoin($sign_day);
             $reward = $this->getRewardCoin($sign_day);
             $this->saveReward($reward);
             $this->saveReward($reward);
-            $this->saveRewardInfoInRedis($reward, date('Y-m-d'));
+            $this->saveRewardInfoInRedis($reward, $sign_day);
             $this->addSignDay();
             $this->addSignDay();
         }
         }
     }
     }
@@ -75,7 +75,7 @@ class SignService
         $sign_data = [
         $sign_data = [
             'uid' => $this->uid,
             'uid' => $this->uid,
             'price' => $reward,
             'price' => $reward,
-            'day' => $sign_day,
+            'day' => date('Y-m-d'),
             'sign_time' => time(),
             'sign_time' => time(),
             'created_at' => date('Y-m-d H:i:s'),
             'created_at' => date('Y-m-d H:i:s'),
             'updated_at' => date('Y-m-d H:i:s')
             'updated_at' => date('Y-m-d H:i:s')