@33cn/game-cashier-react
Advanced tools
Comparing version 1.10.4 to 1.10.5
@@ -64,3 +64,3 @@ import * as tslib_1 from "tslib"; | ||
if (!currentHash) return [3 /*break*/, 7]; | ||
console.log('currentHash', currentHash); | ||
console.log('queryTransactionGroup currentHash', currentHash); | ||
_b.label = 2; | ||
@@ -67,0 +67,0 @@ case 2: |
@@ -288,3 +288,2 @@ import * as tslib_1 from "tslib"; | ||
console.log('queryTransactionGroup result', result); | ||
console.log('queryTransactionGroup hash', transaction.hash); | ||
if (result) { | ||
@@ -291,0 +290,0 @@ // 充值的第三步 |
@@ -86,3 +86,2 @@ import * as tslib_1 from "tslib"; | ||
_this.setState({ loading: false }); | ||
console.log(res); | ||
notification.success({ | ||
@@ -89,0 +88,0 @@ message: (_this.props.toContract ? '充值' : '提现') + "\u4EA4\u6613\u53D1\u9001\u6210\u529F\uFF0C\u8BF7\u7B49\u5F85\u533A\u5757\u94FE\u786E\u8BA4", |
@@ -54,4 +54,2 @@ import * as tslib_1 from "tslib"; | ||
var _this = _super.call(this, props) || this; | ||
// TODO 交易失败用户点击圆圈重新发送交易的时候应该构造根据amount构造一笔新的。 | ||
// TODO 而不是用原来已经构造好的,因为可能是原来构造的交易出了问题 | ||
_this.onCircleClick = function (index) { return function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
@@ -163,3 +161,2 @@ var _a, type, widthdrawState, rechargeState, isRecharge, rwState, signedTx1, tx1, tx1, hash1, transactionStorageName, transaction, signedTx2, tx2, tx2, hash2, transactionStorageName, transaction, signedTx3, tx3, tx3, hash3, transactionStorageName, transaction; | ||
return sendTransaction(tx, url).then(function (hash) { | ||
console.log(hash); | ||
_this.props.onTransactionStart(_this.props.type, step, tx, amount); | ||
@@ -215,6 +212,6 @@ notification.success({ | ||
val.coinName, | ||
"\u7B49\u4E8E1 BTY"), | ||
"=1 BTY"), | ||
React.createElement("span", { className: "right" }, | ||
"\u8D44\u4EA7\uFF1A", | ||
isRecharge ? _this.props.btyBalance + "BTY" : "" + _this.props.gameBalance + val.coinName))); })), | ||
isRecharge ? _this.props.btyBalance + " BTY" : _this.props.gameBalance + " " + val.coinName))); })), | ||
React.createElement(Button, { className: "btn-blue", loading: this.state.loading, onClick: this.submit }, actionName)) : | ||
@@ -244,3 +241,7 @@ React.createElement(React.Fragment, null, | ||
"\u6210\u529F"), | ||
React.createElement("div", { className: "space" }))))); | ||
React.createElement("div", { className: "space" })), | ||
React.createElement("p", { className: 'process-hint' }, | ||
"\u8BF7\u8010\u5FC3\u7B49\u5F85", | ||
actionName, | ||
"\u5B8C\u6210\uFF0C\u4E0D\u8981\u9000\u51FA\u8BE5\u9875\u9762")))); | ||
}; | ||
@@ -392,3 +393,3 @@ Recharge.prototype.onInputChange = function (e) { | ||
notification.success({ | ||
message: '充值交易发送成功,请等待区块链确认', | ||
message: '提现交易发送成功,请等待区块链确认', | ||
duration: 2 | ||
@@ -395,0 +396,0 @@ }); |
{ | ||
"name": "@33cn/game-cashier-react", | ||
"version": "1.10.4", | ||
"version": "1.10.5", | ||
"main": "lib/Cashier.js", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2913
542252