|
|
@@ -24,7 +24,6 @@ class TaskController extends webApp
|
|
|
public function catchTransfer()
|
|
|
{
|
|
|
$key = md5('OTC');
|
|
|
- echo $key;
|
|
|
$checkKey = request()->get('key');
|
|
|
if($checkKey != $key){
|
|
|
return message(1003, false);
|
|
|
@@ -40,17 +39,21 @@ class TaskController extends webApp
|
|
|
}
|
|
|
|
|
|
$count = 0;
|
|
|
+ $failedCount = 0;
|
|
|
foreach ($members as $v){
|
|
|
$result = UsdtWalletService::make()->getTransferInLog($v['id'], $v['trc_address']);
|
|
|
if($result){
|
|
|
$count++;
|
|
|
RedisService::set("caches:wallet:catchTransfer:{$v['id']}_result", $result, 600);
|
|
|
+ }else{
|
|
|
+ $failedCount++;
|
|
|
+ RedisService::set("caches:wallet:catchTransfer:{$v['id']}_result", UsdtWalletService::make()->getError(), 600);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
RedisService::set("caches:wallet:catchPage", $page+1, 600);
|
|
|
if($count>0){
|
|
|
- return message(1020, true);
|
|
|
+ return message(1020, true,['success'=> $count,'fail'=> $failedCount]);
|
|
|
}else{
|
|
|
return message(1021, false);
|
|
|
}
|