|
@@ -46,6 +46,14 @@ bfdc6069eaeb89ec0c4295f5230c13820a578f13ef0086d15a720ea2712ff2040f3ae09a8d3b8f12
|
|
|
$sid = Dever::input('sid');
|
|
|
$start = Dever::input('start');
|
|
|
$end = Dever::input('end');
|
|
|
+ $log = $this->record_action($sid, $start, $end);
|
|
|
+
|
|
|
+ return $log;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function record_action($sid, $start, $end)
|
|
|
+ {
|
|
|
+ $class = new Chinaums();
|
|
|
$log = $class->record($sid, $start, $end);
|
|
|
|
|
|
return $log;
|
|
@@ -163,7 +171,7 @@ class Chinaums
|
|
|
}
|
|
|
|
|
|
# 查询提现记录
|
|
|
- public function record($mid, $start, $end)
|
|
|
+ public function record($mid, $start, $end, $page = '1')
|
|
|
{
|
|
|
$url = $this->host() . 'uisouterfront/withdraw/qryWithDrawLog';
|
|
|
|
|
@@ -173,7 +181,7 @@ class Chinaums
|
|
|
'sysId' => $this->sys_id,
|
|
|
'mchntNo' => $mid,
|
|
|
'timestamp' => date('YmdHis'),
|
|
|
- 'page' => '1',
|
|
|
+ 'page' => '"' . $page . '"',
|
|
|
'beginDate' => $start,
|
|
|
'endDate' => $end,
|
|
|
];
|
|
@@ -182,9 +190,13 @@ class Chinaums
|
|
|
$result = Dever::curl($url, $body, 'post');
|
|
|
$result = Dever::json_decode($result);
|
|
|
$decryptData = $this->privateDecrypt($result['result']);
|
|
|
- print_r($decryptData);die;
|
|
|
-
|
|
|
- return 0;
|
|
|
+ if (isset($decryptData['recordList']) && $decryptData['recordList']) {
|
|
|
+ if ($page < $decryptData['totalPage']) {
|
|
|
+ return $this->record($mid, $start, $end, $page+1);
|
|
|
+ }
|
|
|
+ return Dever::json_decode($decryptData['recordList']);
|
|
|
+ }
|
|
|
+ return array();
|
|
|
}
|
|
|
|
|
|
# 提现
|