|
|
@@ -927,7 +927,7 @@ class Pay extends Api
|
|
|
}
|
|
|
// 查询u币转账记录
|
|
|
public function search_recharge(){
|
|
|
- $time=$time24HoursAgo = strtotime("-24 hours", time());
|
|
|
+ $time = strtotime("-1 hours", time());
|
|
|
$list = Db::name('user_recharge')->where('paid',0)->where('add_time','>',$time)->select();
|
|
|
foreach ($list as $k => $v){
|
|
|
$user_address = Db::name('user_usdt_address')->where('id', $v['uid'])->find();
|
|
|
@@ -948,11 +948,13 @@ class Pay extends Api
|
|
|
if ($be){ //hash重复
|
|
|
continue;
|
|
|
}
|
|
|
+ Db::name('user_recharge')->where('id', $v['id'])->update(['paid' => 1,'price'=> $value2,'transactionHash' => $transactionHash]);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
- sleep(10);
|
|
|
+ sleep(60);
|
|
|
}
|
|
|
}
|
|
|
public function test(){
|