|
@@ -117,23 +117,20 @@ class Multi
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- # 提现
|
|
|
|
- public function tixian($config, $merchant, $cash)
|
|
|
|
|
|
+ # 查询订单
|
|
|
|
+ public function query($config, $merchant, $orderType, $transDate, $page = 1)
|
|
{
|
|
{
|
|
$this->config = $config;
|
|
$this->config = $config;
|
|
-
|
|
|
|
- $mid = $merchant['mid'];
|
|
|
|
-
|
|
|
|
//整理内容信息
|
|
//整理内容信息
|
|
$content = [
|
|
$content = [
|
|
'merNo' => $merchant['merno'],
|
|
'merNo' => $merchant['merno'],
|
|
- 'payAmt' => $cash,
|
|
|
|
- 'ps' => $merchant['name'] . '划付',
|
|
|
|
|
|
+ 'orderType' => $orderType,
|
|
|
|
+ 'transDate' => $transDate,
|
|
|
|
+ 'pageIdx' => $page
|
|
];
|
|
];
|
|
- Dever::log($content, 'yspay_huafu_tixian');
|
|
|
|
- $result = $this->curl('202002', $content);
|
|
|
|
-
|
|
|
|
- return 'ok';
|
|
|
|
|
|
+ Dever::log($content, 'yspay_query');
|
|
|
|
+ $result = $this->curl('202012', $content, false);
|
|
|
|
+ return $result;
|
|
}
|
|
}
|
|
|
|
|
|
protected function getOrderNum($order_num)
|
|
protected function getOrderNum($order_num)
|
|
@@ -176,6 +173,9 @@ class Multi
|
|
return 'error';
|
|
return 'error';
|
|
}
|
|
}
|
|
$body = Dever::json_decode($body);
|
|
$body = Dever::json_decode($body);
|
|
|
|
+ if ($code == '202012') {
|
|
|
|
+ return $body;
|
|
|
|
+ }
|
|
if (isset($body['respCode'])) {
|
|
if (isset($body['respCode'])) {
|
|
if ($body['respCode'] == '99999999') {
|
|
if ($body['respCode'] == '99999999') {
|
|
return $state ? 'ok' : $body;
|
|
return $state ? 'ok' : $body;
|