|  | @@ -157,7 +157,7 @@ async function check_czz_withdraw_task() {
 | 
											
												
													
														|  |          var exec_obj;
 |  |          var exec_obj;
 | 
											
												
													
														|  |          try {
 |  |          try {
 | 
											
												
													
														|  |              exec_obj = await redis.redis_pop(reids_token_config.CHECK_CZZ_WITHDRAW_STATUS_QUEUE)
 |  |              exec_obj = await redis.redis_pop(reids_token_config.CHECK_CZZ_WITHDRAW_STATUS_QUEUE)
 | 
											
												
													
														|  | -            logger.log("check_czz_withdraw_task redis_pop",exec_obj)
 |  | 
 | 
											
												
													
														|  | 
 |  | +            logger.log("check_czz_withdraw_task redis_pop", exec_obj)
 | 
											
												
													
														|  |              if (!exec_obj) {
 |  |              if (!exec_obj) {
 | 
											
												
													
														|  |                  logger.log("没有 czz hash check")
 |  |                  logger.log("没有 czz hash check")
 | 
											
												
													
														|  |                  await utils.sleep(2 * 60 * 1000)
 |  |                  await utils.sleep(2 * 60 * 1000)
 | 
											
										
											
												
													
														|  | @@ -300,8 +300,9 @@ async function withdraw_task() {
 | 
											
												
													
														|  |          //如果失败重试一次
 |  |          //如果失败重试一次
 | 
											
												
													
														|  |          var tryCount = 1;
 |  |          var tryCount = 1;
 | 
											
												
													
														|  |          for (let index = 0; index < 1 + tryCount; index++) {
 |  |          for (let index = 0; index < 1 + tryCount; index++) {
 | 
											
												
													
														|  | 
 |  | +            var result;
 | 
											
												
													
														|  |              try {
 |  |              try {
 | 
											
												
													
														|  | -                var result = await withdraw_({ ...temp_obj })
 |  | 
 | 
											
												
													
														|  | 
 |  | +                result = await withdraw_({ ...temp_obj })
 | 
											
												
													
														|  |                  last_time = utils.getTimestamp()
 |  |                  last_time = utils.getTimestamp()
 | 
											
												
													
														|  |                  logger.log('withdraw_task withdraw_ =', result, last_time)
 |  |                  logger.log('withdraw_task withdraw_ =', result, last_time)
 | 
											
												
													
														|  |                  if (result && moralis.getTransferCode(result) == 0) {
 |  |                  if (result && moralis.getTransferCode(result) == 0) {
 | 
											
										
											
												
													
														|  | @@ -356,7 +357,11 @@ async function withdraw_task() {
 | 
											
												
													
														|  |                  update_obj.withdraw_status = 3
 |  |                  update_obj.withdraw_status = 3
 | 
											
												
													
														|  |                  update_obj.errorMsg = error.toString()
 |  |                  update_obj.errorMsg = error.toString()
 | 
											
												
													
														|  |                  await withdraw_db.update_withdraw_task(exec_obj.withdraw_id, update_obj)
 |  |                  await withdraw_db.update_withdraw_task(exec_obj.withdraw_id, update_obj)
 | 
											
												
													
														|  | -                logger.error('withdraw_task error=', error.toString())
 |  | 
 | 
											
												
													
														|  | 
 |  | +                if (result)
 | 
											
												
													
														|  | 
 |  | +                    logger.error('withdraw_task error=', error.toString(), JSON.stringify(temp_obj), JSON.parse(result))
 | 
											
												
													
														|  | 
 |  | +                else {
 | 
											
												
													
														|  | 
 |  | +                    logger.error('withdraw_task error=', error.toString(), JSON.stringify(temp_obj))
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  |                  break
 |  |                  break
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
										
											
												
													
														|  | @@ -664,10 +669,10 @@ collect_conis_task();
 | 
											
												
													
														|  |  check_czz_withdraw_task();
 |  |  check_czz_withdraw_task();
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  if (process.env.NODE_ENV == 'dev' || process.env.NODE_ENV == 'test') {
 |  |  if (process.env.NODE_ENV == 'dev' || process.env.NODE_ENV == 'test') {
 | 
											
												
													
														|  | -    timer_transfer_bsc_task()
 |  | 
 | 
											
												
													
														|  | -    timer_transfer_czz_task()
 |  | 
 | 
											
												
													
														|  | -    timer_collect_conis_bsc_task()
 |  | 
 | 
											
												
													
														|  | -    timer_collect_conis_czz_task()
 |  | 
 | 
											
												
													
														|  | 
 |  | +    // timer_transfer_bsc_task()
 | 
											
												
													
														|  | 
 |  | +    // timer_transfer_czz_task()
 | 
											
												
													
														|  | 
 |  | +    // timer_collect_conis_bsc_task()
 | 
											
												
													
														|  | 
 |  | +    // timer_collect_conis_czz_task()
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  module.exports = router
 |  |  module.exports = router
 |