mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -87,10 +87,13 @@ class UserService | |||||||
|         if (!$user) { |         if (!$user) { | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|         $user->t = time(); |         try { | ||||||
|         $user->u = $user->u + $u; |             $user->update([ | ||||||
|         $user->d = $user->d + $d; |                 't' => time(), | ||||||
|         if (!$user->save()) { |                 'u' => DB::raw("u + {$u}"), | ||||||
|  |                 'd' => DB::raw("d + {$d}") | ||||||
|  |             ]); | ||||||
|  |         } catch (\Exception $e) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|         $mailService = new MailService(); |         $mailService = new MailService(); | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ class CacheKey | |||||||
|         'SERVER_SHADOWSOCKS_LAST_CHECK_AT' => 'ss节点最后检查时间', |         'SERVER_SHADOWSOCKS_LAST_CHECK_AT' => 'ss节点最后检查时间', | ||||||
|         'SERVER_SHADOWSOCKS_LAST_PUSH_AT' => 'ss节点最后推送时间', |         'SERVER_SHADOWSOCKS_LAST_PUSH_AT' => 'ss节点最后推送时间', | ||||||
|         'TEMP_TOKEN' => '临时令牌', |         'TEMP_TOKEN' => '临时令牌', | ||||||
|         'LAST_SEND_EMAIL_REMIND_TRAFFIC' |         'LAST_SEND_EMAIL_REMIND_TRAFFIC' => '最后发送流量邮件提醒' | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|     public static function get(string $key, $uniqueValue) |     public static function get(string $key, $uniqueValue) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user