|
@@ -16,6 +16,8 @@ export default class EthMev {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static async getEthMevPendingData(block, hash, dataVague, page=1, size=200) {
|
|
static async getEthMevPendingData(block, hash, dataVague, page=1, size=200) {
|
|
|
|
|
+ if (!isNaN(parseInt(block)) && block.charAt(0) !== '-') block = '-' + block
|
|
|
|
|
+
|
|
|
const url = '/ethmev/findByHashOrBlockOrDataVaguePending'
|
|
const url = '/ethmev/findByHashOrBlockOrDataVaguePending'
|
|
|
const rst = await http.post(url, {
|
|
const rst = await http.post(url, {
|
|
|
block: block,
|
|
block: block,
|
|
@@ -62,6 +64,9 @@ export default class EthMev {
|
|
|
history.pending = dataObj.pending
|
|
history.pending = dataObj.pending
|
|
|
history.tradeInfoList = dataObj.tradeInfo
|
|
history.tradeInfoList = dataObj.tradeInfo
|
|
|
|
|
|
|
|
|
|
+ // hash异常处理
|
|
|
|
|
+ if (history.hash.indexOf('0x') === -1 && history.hash.length === 64) history.hash = '0x' + history.hash
|
|
|
|
|
+
|
|
|
// token处理
|
|
// token处理
|
|
|
history.tokenMap = {}
|
|
history.tokenMap = {}
|
|
|
history.tradeInfoList.map(function (tradeInfo) {
|
|
history.tradeInfoList.map(function (tradeInfo) {
|