收款通知性能优化

This commit is contained in:
技术老胡
2024-11-06 16:17:23 +08:00
parent 6acecb0596
commit 4228355d36
6 changed files with 60 additions and 58 deletions

View File

@@ -26,7 +26,7 @@ class MpayClass
public function upRecords($records, $aid)
{
$header = ['Content-Type: application/json;charset=UTF-8'];
$url = $this->submit_records_url . "/{$this->pid}/{$aid}/{$this->getSign()}";
$url = $this->submit_records_url . "?pid={$this->pid}&aid={$aid}&sign={$this->getSign()}";
$res = $this->getHttpResponse($url, $header, json_encode($records));
return $res;
}

View File

@@ -95,10 +95,10 @@ class ShouQianBa
{
$new_query = $query;
$now = $this->now;
$begin_time = (int)(($now - 175) . mt_rand(100, 999));
$end_time = (int)($now . mt_rand(100, 999));
$query['date_start'] = $begin_time;
$query['date_end'] = $end_time;
$begin_time = (int)(($now - 175) . 000);
$end_time = (int)($now . 999);
$new_query['date_start'] = $begin_time;
$new_query['date_end'] = $end_time;
return $new_query;
}
// 登陆账号