Rony 2 년 전
부모
커밋
066f241922
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      model/moralis_sdk.js

+ 3 - 2
model/moralis_sdk.js

@@ -896,7 +896,7 @@ const collectCoins = async(obj) => {
     logger.log(' logParams.transfers=', logParams.transfers)
 
     //是否需要归集
-    return obj.address + ':暂停归集过程';
+    // return obj.address + ':暂停归集过程';
     if (transFerGasFree.totalCount > 0) {
         //需要转移 gas 费 
         //每次都需要充值 gas 费
@@ -1089,7 +1089,8 @@ async function transfer_(opts) {
         if (opts.contractAddress) { //如果存在就是代币
             options = Moralis.TransferOptions = {
                 type: opts.type,
-                amount: (opts.amount - 1000).toString(), //金额不足而出现的问题
+                // amount: (opts.amount - 1000).toString(), //金额不足而出现的问题
+                amount: (opts.amount - 1000).toLocaleString('fullwide', { useGrouping: false }),
                 receiver: opts.receiver, //接收钱包地址
                 contractAddress: opts.contractAddress //用户合约地址
             };