|
@@ -94,6 +94,26 @@ class Multi
|
|
|
Dever::db('pay/yspay_cash_log')->insert($data);
|
|
|
}
|
|
|
|
|
|
+ # 查询余额
|
|
|
+ protected function yue($merchant)
|
|
|
+ {
|
|
|
+ $this->config = $config;
|
|
|
+ //整理内容信息
|
|
|
+ $content = [
|
|
|
+ 'merNo' => $merchant['merno'],
|
|
|
+ ];
|
|
|
+ Dever::log($content, 'yspay_yue');
|
|
|
+ $result = $this->curl('202006', $content);
|
|
|
+ if ($result == 'ok') {
|
|
|
+ $data['status'] = 1;
|
|
|
+ } else {
|
|
|
+ $data['status'] = 3;
|
|
|
+ $data['error'] = $result;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
protected function getOrderNum($order_num)
|
|
|
{
|
|
|
$where['order_num'] = $order_num . '_' . Dever::rand(8, 0);
|