|
@@ -26,18 +26,31 @@ bfdc6069eaeb89ec0c4295f5230c13820a578f13ef0086d15a720ea2712ff2040f3ae09a8d3b8f12
|
|
|
print_r($content);die;
|
|
|
}
|
|
|
|
|
|
- public function test()
|
|
|
+ public function query()
|
|
|
{
|
|
|
|
|
|
$class = new Chinaums();
|
|
|
|
|
|
# 查看当前余额
|
|
|
- $cash = $class->query('89810005331ATL3');
|
|
|
-
|
|
|
- echo $cash;die;
|
|
|
+ $sid = Dever::input('sid');
|
|
|
+ $cash = $class->query($sid);
|
|
|
return $cash;
|
|
|
}
|
|
|
|
|
|
+ public function record()
|
|
|
+ {
|
|
|
+
|
|
|
+ $class = new Chinaums();
|
|
|
+
|
|
|
+ # 查看提现记录
|
|
|
+ $sid = Dever::input('sid');
|
|
|
+ $start = Dever::input('start');
|
|
|
+ $end = Dever::input('end');
|
|
|
+ $log = $class->record($sid, $start, $end);
|
|
|
+
|
|
|
+ return $log;
|
|
|
+ }
|
|
|
+
|
|
|
public function act()
|
|
|
{
|
|
|
$order = Dever::order();
|
|
@@ -150,6 +163,33 @@ class Chinaums
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+ # 查询提现记录
|
|
|
+ public function record($mid, $start, $end)
|
|
|
+ {
|
|
|
+ $url = $this->host() . 'uisouterfront/withdraw/qryWithDrawLog';
|
|
|
+
|
|
|
+ $mid = $mid ? $mid : $this->mch_id;
|
|
|
+ //整理内容信息
|
|
|
+ $content = [
|
|
|
+ 'sysId' => $this->sys_id,
|
|
|
+ 'mchntNo' => $mid,
|
|
|
+ 'timestamp' => date('YmdHis'),
|
|
|
+ 'page' => 1,
|
|
|
+ 'beginDate' => $start,
|
|
|
+ 'endDate' => $end,
|
|
|
+ ];
|
|
|
+ //设置签名并加密
|
|
|
+ $body['content'] = $this->createSignature($content);
|
|
|
+
|
|
|
+ $result = Dever::curl($url, $body, 'post');
|
|
|
+
|
|
|
+ $decryptData = $this->privateDecrypt($result);
|
|
|
+ print_r($content);
|
|
|
+ print_r($decryptData);die;
|
|
|
+
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
# 提现
|
|
|
public function act($mid, $order, $order_id, $type = 2, $cash = 1, $notify = '')
|
|
|
{
|