添加日志打印
This commit is contained in:
1 parent
1202a7a9d3
commit
40088cd0f0
2 files changed
+4
No files matched your search
@@ -17,6 +17,7 @@ import com.ruoyi.system.service.IWalletAddressService;
|
|||||||
import com.ruoyi.system.service.IUsdtProxyToOtherService;
|
import com.ruoyi.system.service.IUsdtProxyToOtherService;
|
||||||
import com.ruoyi.system.service.IUsdtOtherToProxyService;
|
import com.ruoyi.system.service.IUsdtOtherToProxyService;
|
||||||
import com.ruoyi.system.service.WalletSigningService;
|
import com.ruoyi.system.service.WalletSigningService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@@ -32,6 +33,7 @@ import com.ruoyi.system.domain.vo.WalletOperationRequest;
|
|||||||
* @author luqj
|
* @author luqj
|
||||||
* @date 2025-11-25
|
* @date 2025-11-25
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/address" )
|
@RequestMapping("/system/address" )
|
||||||
public class WalletAddressController extends BaseController {
|
public class WalletAddressController extends BaseController {
|
||||||
@@ -67,6 +69,7 @@ public class WalletAddressController extends BaseController {
|
|||||||
? AjaxResult.error("钱包刷新成功,但重新读取数据失败")
|
? AjaxResult.error("钱包刷新成功,但重新读取数据失败")
|
||||||
: AjaxResult.success(refreshed);
|
: AjaxResult.success(refreshed);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
log.error(ex.getMessage(),ex);
|
||||||
return AjaxResult.error("链上查询失败,请稍后重试");
|
return AjaxResult.error("链上查询失败,请稍后重试");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ public class WalletSnapshotRefreshService {
|
|||||||
walletAddressService.updateTronInfo(wallet);
|
walletAddressService.updateTronInfo(wallet);
|
||||||
return;
|
return;
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
|
log.error(e.getMessage(),e);
|
||||||
if (attempt == MAX_ATTEMPTS) {
|
if (attempt == MAX_ATTEMPTS) {
|
||||||
log.warn("钱包链上快照连续刷新失败,token={},尝试次数={}", token, MAX_ATTEMPTS);
|
log.warn("钱包链上快照连续刷新失败,token={},尝试次数={}", token, MAX_ATTEMPTS);
|
||||||
} else if (!waitBeforeRetry(attempt)) {
|
} else if (!waitBeforeRetry(attempt)) {
|
||||||
|
|||||||
Reference in new issue
Block a user