mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 05:50:55 +08:00
deubg tracker api
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user