deubg tracker api

This commit is contained in:
xiaomlove
2022-04-09 19:07:47 +08:00
parent a9fdbd5824
commit 4ded88720c

View File

@@ -124,12 +124,16 @@ class TrackerRepository extends BaseRepository
do_log("[" . get_class($exception) . "] " . $exception->getMessage() . "\n" . $exception->getTraceAsString(), 'error');
$repDict = $this->generateFailedAnnounceResponse("system error, report to sysop please, hint: " . nexus()->getRequestId());
} finally {
do_log("userUpdates: " . nexus_json_encode($this->userUpdates));
$setUpdate = "[USER_SET_UPDATE] user: " . $user->id;
foreach ($this->userUpdates as $key => $value) {
$setUpdate .= ", $key = $value";
}
do_log($setUpdate);
if (isset($user) && count($this->userUpdates)) {
// $user->update($this->userUpdates);
$user->fill($this->userUpdates);
$willBeUpdate = "[USER_UPDATE] user: " . $user->id;
foreach ($this->userUpdates as $key => $value) {
$willBeUpdate = "[USER_ACTUAL_UPDATE] user: " . $user->id;
foreach ($user->getDirty() as $key => $value) {
$willBeUpdate .= ", $key = $value";
}
do_log($willBeUpdate);