mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +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');
|
do_log("[" . get_class($exception) . "] " . $exception->getMessage() . "\n" . $exception->getTraceAsString(), 'error');
|
||||||
$repDict = $this->generateFailedAnnounceResponse("system error, report to sysop please, hint: " . nexus()->getRequestId());
|
$repDict = $this->generateFailedAnnounceResponse("system error, report to sysop please, hint: " . nexus()->getRequestId());
|
||||||
} finally {
|
} 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)) {
|
if (isset($user) && count($this->userUpdates)) {
|
||||||
// $user->update($this->userUpdates);
|
// $user->update($this->userUpdates);
|
||||||
$user->fill($this->userUpdates);
|
$user->fill($this->userUpdates);
|
||||||
$willBeUpdate = "[USER_UPDATE] user: " . $user->id;
|
$willBeUpdate = "[USER_ACTUAL_UPDATE] user: " . $user->id;
|
||||||
foreach ($this->userUpdates as $key => $value) {
|
foreach ($user->getDirty() as $key => $value) {
|
||||||
$willBeUpdate .= ", $key = $value";
|
$willBeUpdate .= ", $key = $value";
|
||||||
}
|
}
|
||||||
do_log($willBeUpdate);
|
do_log($willBeUpdate);
|
||||||
|
|||||||
Reference in New Issue
Block a user